ch.getPrompts: A function to extract the unique prompts from a choice...

View source: R/ch.getPrompts.r

ch.getPromptsR Documentation

A function to extract the unique prompts from a choice datafile.

Description

A function to extract the unique prompts from a choice datafile.

Usage

ch.getPrompts(data, item1cols, item2cols)

Arguments

data

A datafrane containing the raw data from a choice experiment or set of experiments.

item1cols

a vector of strings that specifies the names of the columns in "data" that contains the the probes in Item 1.

item2cols

a vector of strings that specifies the names of the columns in "data" that contains the the probes in Item 2.

Value

A dataframe containing the the unique prompts from a choice datafile

Examples

ch.getPrompts (df.myInputData, c("Item1", "Item2"), c("Item3"))

ccpluncw/ccpl_R_chMorals documentation built on Feb. 4, 2024, 3:30 p.m.