View source: R/reshape_conjoint.R
reshape_conjoint | R Documentation |
This function takes a data frame, preferably from “read_Qualtrics()”, and reshapes it from wide to long such that each row is a distinct conjoint task rather than a respondent.
reshape_conjoint(.data, .idvar, .outcomes, .alphabet = "F")
.data |
A data frame, preferably from “read_Qualtrics()” |
.idvar |
A variable (unquoted) identifying the column name containing respondent IDs |
.outcomes |
A character vector identifying the column names that contain outcomes |
.alphabet |
The letter indicating conjoint attributes. If using Strezhnev's package (https://github.com/astrezhnev/conjointsdt) in Qualtrics, the default is "F". |
A conjoint task-level data frame (in other words, in long format) ready for conjoint analysis.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.