create_instrument_from_list: Create instrument from list

View source: R/create_instrument_from_list.R

create_instrument_from_listR Documentation

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(s)

Alex Nikic

Examples


instrument = create_instrument_from_list(
  list("How old are you?",
    "What is your gender?",
    "What is your name?")
)





harmonydata documentation built on April 3, 2025, 6:33 p.m.