I am using R studio for a practical and I need to load a survey. It suggests that I place the following into the R template that I was provided:(adsbygoogle = window.adsbygoogle || []).push({});

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

Template link here.

I have no clue WHERE one inserts these lines. I try the following:

urvey <- read.csv(file="http://www.maths.usyd.edu.au/u/UG/IM/STAT2012/r/survey.csv")

attach(survey)

## Error in attach(survey): object ’survey’ not found

pulse.sf=pulse[smoke==1 & sex==2]

## Error in eval(expr, envir, enclos): object ’pulse’ not found

pulse.sf

## Error in eval(expr, envir, enclos): object ’pulse.sf’ not

foun

What's going on? I can actually download the survey and view it on Excel. The problem is drawing the data into R studio.

Appreciate any help that I can get.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Importing survey on R Studio

Have something to add?

Draft saved
Draft deleted

Loading...

Similar Threads - Importing survey Studio | Date |
---|---|

[Mathematica] : Method to import C-Code to Expressions | Jun 10, 2015 |

Material Studio (geometry optimization) | Mar 13, 2015 |

Trying to import an already meshed surface to Comsol for FE analysis | Jun 19, 2013 |

Fitting Data Imported into Mathematica from Excel | Oct 15, 2012 |

Importing Data in MATLAB | Sep 22, 2012 |

**Physics Forums - The Fusion of Science and Community**