Giter VIP home page Giter VIP logo

intro_to_r's People

Contributors

andrewejaffe avatar briannabarry avatar carriewright11 avatar lmyint avatar muschellij2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

intro_to_r's Issues

subsetting lab- update

  1. drop question 9
  2. show examples for tbls for question 8 and also when rownames become column

Remove qplot

Remove qplot - just start them out in ggplot.

clarify labs by adding backticks to what we want as R objects

And also add parentheses to function names.
ie in data cleaning lab:

  1. Create a data set called namat which is equal to is.na(bike).
    What is the class of namat? Run rowSums and colSums on namat.
    These represent the number of missing values in the rows and columns of
    bike. Don't print rowSums, but do a table of the rowSums

Should be:

  1. Create a data set called namat which is equal to is.na(bike).
    What is the class of namat? Run rowSums() and colSums() on namat.
    These represent the number of missing values in the rows and columns of
    bike. Don't print rowSums(), but do a table() of the rowSums()

Error

I saw that it happened in the video, but on my test it's not happening and I don't know why.
#the code

3. Use the read_excel() function in the readxl package to

read in the dataset

destfile = file.path(tempdir(), "Monuments.xlsx")
download.file("http://johnmuschelli.com/intro_to_r/data/Monuments.xlsx",
destfile = destfile)
mon = read_excel(destfile)

#the error

library(readxl)
destfile = file.path(tempdir(), "Monuments.xlsx")
download.file("http://johnmuschelli.com/intro_to_r/data/Monuments.xlsx",

  •           destfile = destfile)
    

trying URL 'http://johnmuschelli.com/intro_to_r/data/Monuments.xlsx'
Content type 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' length 14013 bytes (13 KB)
downloaded 13 KB

mon = read_excel(destfile)
Error in read_fun(path = path, sheet = sheet, limits = limits, shim = shim, :
Evaluation error: zip file 'C:\Users\G\AppData\Local\Temp\RtmpAjmis5/Monuments.xlsx' cannot be opened.
mon = read_excel(destfile)
Error in read_fun(path = path, sheet = sheet, limits = limits, shim = shim, :
Evaluation error: zip file 'C:\Users\G\AppData\Local\Temp\RtmpAjmis5/Monuments.xlsx' cannot be opened.
library(readxl)
library(readr)
mon = read_excel(destfile)
Error in read_fun(path = path, sheet = sheet, limits = limits, shim = shim, :
Evaluation error: zip file 'C:\Users\G\AppData\Local\Temp\RtmpAjmis5/Monuments.xlsx' cannot be opened.

Data Summarization

  • Move summarize before summarize_all
  • Fix last lab about qplot not hist

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.