View source: R/ch.getPrompts.r
ch.getPrompts | R Documentation |
A function to extract the unique prompts from a choice datafile.
ch.getPrompts(data, item1cols, item2cols)
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. |
A dataframe containing the the unique prompts from a choice datafile
ch.getPrompts (df.myInputData, c("Item1", "Item2"), c("Item3"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.