survey: Survey data frame

Description Usage Arguments Value Examples

Description

Store the data of a survey in a tibble (data frame) with a unique survey identifier, import filename, and optional doi.

Usage

1
2
3
4
5
6
7
8
survey(
  df = data.frame(),
  id = character(),
  filename = character(),
  doi = character()
)

is.survey(df)

Arguments

df

A tibble or data frame that contains the survey data.

id

A mandatory identifier for the survey

filename

The import file name.

doi

Optional doi, can be omitted.

Value

A tibble with id, filename, doi metadata information.

Examples

1
2
3
4
5
6
7
example_survey <- survey( 
  df =data.frame ( 
    rowid = 1:6,
    observations = runif(6)), 
  id = 'example', 
  filename = "no_file"
)

antaldaniel/retroharmonize documentation built on Aug. 15, 2020, 10:13 a.m.