diff options
author | Julien M'Poy <julien.mpoy@gmail.com> | 2017-11-08 13:29:24 +0100 |
---|---|---|
committer | Julien M'Poy <julien.mpoy@gmail.com> | 2017-11-08 13:29:24 +0100 |
commit | 5e81853768c0f3cc55c05e0dfec18773045df952 (patch) | |
tree | b62c3fb0bfc6de3318e962b330e163f3d65cdfa6 /r.html.markdown | |
parent | 20893f5d83b4f7a1585bac9e7656d6af46183262 (diff) | |
parent | 6ce71c56d6affb57a3537a2732485a4918306d4b (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'r.html.markdown')
-rw-r--r-- | r.html.markdown | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/r.html.markdown b/r.html.markdown index 7a94ba05..e7486e60 100644 --- a/r.html.markdown +++ b/r.html.markdown @@ -663,7 +663,8 @@ require(plyr) # "pets.csv" is a file on the internet # (but it could just as easily be a file on your own computer) -pets <- read.csv("http://learnxinyminutes.com/docs/pets.csv") +require(RCurl) +pets <- read.csv(textConnection(getURL("http://learnxinyminutes.com/docs/pets.csv"))) pets head(pets, 2) # first two rows tail(pets, 1) # last row |