# Importing survey on R Studio

1. Aug 18, 2016

### BubblesAreUs

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:

attach(survey)
pulse.sf=pulse[smoke==1 & sex==2]
pulse.sf

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

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.

2. Aug 18, 2016

### micromass

Staff Emeritus
It works for me. So some questions: