verbatims_y2: Create a dataframe of open-ended questions formatted for...

View source: R/verbatims_y2.R

verbatims_y2R Documentation

Create a dataframe of open-ended questions formatted for internbot, used to create appendices

Description

Formats open-ended questions with the proper columns for internbot: variable, prompt, label, base_ns

Usage

verbatims_y2(dataset, ...)

Arguments

dataset

no default. Usually piped in from your main dataset

...

The names of the openended variables from your dataset you want to include in your new dataframe

Examples

responses <- tibble::tibble(
  var1 = c(
    'I like to talk about dogs',
    'Dogs are cool but cats are aight too',
    'I prefer dogs over cats',
    "My dog's collars are always too tight",
    'One last sentence about dogs',
    'Cats collars are typically cooler than dogs'
  )
)

verbatims_y2(responses, var1)

y2analytics/y2clerk documentation built on March 26, 2024, 2:10 a.m.