| survey | R Documentation |
Store survey data in a tibble with a unique survey identifier, source filename, and optional digital object identifier (DOI).
survey(object = data.frame(), id = "survey_id", filename = NULL, doi = NULL)
is.survey(object)
## S3 method for class 'survey'
summary(object, ...)
object |
A data frame or tibble containing the survey data. |
id |
A unique identifier for the survey. |
filename |
The name of the source file. |
doi |
An optional digital object identifier (DOI). |
... |
Arguments passed to summary method. |
Survey objects can be created directly with this constructor. More commonly, they are created by the import functions [read_rds()], [read_spss()], [read_dta()], and [read_csv()], or through the common import interface [read_surveys()].
A tibble of class 'survey' with survey-level metadata stored in the 'id', 'filename', and 'doi' attributes.
Other importing functions:
is.survey_df()
example_survey <- survey(
object = data.frame(
rowid = 1:6,
observations = runif(6)
),
id = "example",
filename = "no_file"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.