muschellij2 / intro_to_r Goto Github PK
View Code? Open in Web Editor NEWIntroduction to R
License: MIT License
Introduction to R
License: MIT License
theres a bunch of stuff from previous years that we don't really use...is it worth cleaning up the repository?
Just put the vector - dput confuses anyone.
I saw that it happened in the video, but on my test it's not happening and I don't know why.
#the code
read_excel()
function in the readxl
package todestfile = 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.
Get rid of mtcars rownames and talk about tidy philosophy.
a lot of the data frames dont have the car names
not death
instead of character/factor with a ton of levels
And also add parentheses to function names.
ie in data cleaning lab:
Should be:
namat
which is equal to is.na(bike).namat
? Run rowSums() and colSums() on namat
.bike
. Don't print rowSums(), but do a table() of the rowSums()due to deprication
also, introduce %in% here
Remove qplot
- just start them out in ggplot
.
Just tell them to stop using any base functions, like relevel
and levels
and do the forcats one.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.