Learn R Programming

harmonydata (version 0.3.1)

create_instrument_from_list: Create instrument from list

Description

This function creates an instrument from a list of questions.

Usage

create_instrument_from_list(
  question_texts,
  question_numbers = NULL,
  instrument_name = "My instrument"
)

Arguments

question_texts

A character vector of question texts.

question_numbers

A character vector of question numbers. If not provided, the question number will be the index of the question text.

instrument_name

A character string of the instrument name.

Author

Alex Nikic

Examples

Run this code
# \donttest{
instrument = create_instrument_from_list(
  list("How old are you?",
    "What is your gender?",
    "What is your name?")
)
# }



Run the code above in your browser using DataLab