is.survey_df | R Documentation |
Store the data of a survey in a tibble (data frame) with a unique survey identifier, import filename, and optional document object identifier.
is.survey_df(object)
survey_df(
x,
dataset_bibentry = NULL,
dataset_subject = NULL,
identifier,
filename
)
is.survey_df(object)
## S3 method for class 'survey_df'
print(x, ...)
x |
A tibble or data frame that contains the survey data. |
dataset_bibentry |
A list of bibliographic references and descriptive metadata
about the dataset as a whole created with
|
dataset_subject |
The subject of the dataset; it can be a simple
character string, or a more complex object created with
|
filename |
The import file name. |
id |
A mandatory identifier for the survey. |
Whilst you can create a survey object with this helper function,
it is most likely that you will receive it with an importing function, i.e.
read_rds
, read_spss
read_dta
,
read_csv
or
their common wrapper read_survey
.
A dataset::dataset_df
object with with id
, and
filename
metadata information.
Other importing functions:
survey()
example_survey <- survey(
x = 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.