[R] Retrieving data from survey in R Studio

John Dougherty jwd at surewest.net
Fri Aug 19 05:41:18 CEST 2016


On Thu, 18 Aug 2016 09:19:05 +0000
Barathan Roy Pinas <bpin3104 at uni.sydney.edu.au> wrote:

> Hello,
> 
> 
> I have been given a .csv file and it is not loading. This is what I
> did.
> 
> 
> survey=read.csv("http://www.maths.usyd.edu.au/u/UG/IM/STAT2012/r/survey.csv")
> attach(survey)
> pulse.sf=pulse[smoke==1 & sex==2]
> pulse.sf
> 
...

A couple of points.  First, your question addresses RStudio which has
its own list.  Next, the issue appears to be homework, and that is
not something many will help you with.  However, since the actual issue
is generic to R, let that slide. You want to be sure the address is
correctly typed. Is the "r" supposed to be lower case? Then, do you
have the appropriate permissions to enter that page? Since that is a
university server, you may need to be logged in through your student
account to access the page with the data.  Even if you are, will it
let RStudio access it?  It would probably be simplest to simply download
the data to your system, then read in the local copy.

-- 

John



More information about the R-help mailing list