Description Usage Arguments Details Value Author(s) Examples
Parse responses to a data.frame using a sm_surveydetails object.
| 1 2 3 4 | ## S3 method for class 'sm_response'
as.data.frame(x, row.names, optional, details = NULL, stringsAsFactors = FALSE, ...)
## S3 method for class 'sm_response_list'
as.data.frame(x, row.names, optional, details = NULL, stringsAsFactors = FALSE, ...)
 | 
| x | An object of class  | 
| row.names | Ignored. | 
| optional | Ignored. | 
| details | If  | 
| stringsAsFactors | Whether to create factor variables when creating the resulting data.frame. There should be no situation where this needs to be  | 
| ... | Other arguments. Currently ignored. | 
Parses an sm_response object, or list of such objects, into a dataframe using a sm_surveydetails object to structure the result.
A data.frame. Variable names are based upon the Survey Monkey internal question_id numbers. Question wordings are stored in a “question” attribute in each variable. The question wordings can also be extracted from a “sm_surveydetails” object using surveyquestions. The user will have to manually rename variables.
Thomas J. Leeper
| 1 2 3 4 5 6 7 8 9 10 | ## Not run: 
smlogin()
s <- surveylist()
r <- respondentlist(s[[1]])
# get all responses (up to 100)
a <- getresponses(r)
as.data.frame(a)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.