From 6d596b3bcd096cd537fa32ed1f9a197a2e7fcdd4 Mon Sep 17 00:00:00 2001 From: yhoriuchi Date: Fri, 18 Aug 2023 08:03:09 -0400 Subject: [PATCH] Update reshape_projoint.R Changed the order of input arguments so that we don't need to add ".outcomes = " in the minimal code. --- R/reshape_projoint.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/reshape_projoint.R b/R/reshape_projoint.R index 492efa1..842bd05 100644 --- a/R/reshape_projoint.R +++ b/R/reshape_projoint.R @@ -8,10 +8,10 @@ #' @import rlang #' @import tidyselect #' @param .dataframe A data frame, preferably from \code{\link{read_Qualtrics}} -#' @param .idvar "ResponseId" (default): a character identifying the column name containing respondent #' @param .outcomes A character vector identifying the column names that contain outcomes. If there is a repeated task, it should be the LAST element in this vector. #' @param .outcomes_ids c("A", "B") (default): a vector identifying the possibilities for the outcome variables -- e.g., c("Candidate A", "Candidate B") #' @param .alphabet "K" (default): a letter indicating conjoint attributes. If using Strezhnev's package (\url{https://github.com/astrezhnev/conjointsdt}) in Qualtrics. +#' @param .idvar "ResponseId" (default): a character identifying the column name containing respondent #' @param .repeated TRUE (default) if there is a repeated task (recommended). The repeated task should be the same as the first task. #' @param .flipped TRUE (default) if the profiles of the repeated task are flipped (recommended) #' @param .covariates NULL (default): a character vector identifying respondents' covariates used for subgroup analysis @@ -36,10 +36,10 @@ reshape_projoint <- function( .dataframe, - .idvar = "ResponseId", .outcomes, .outcomes_ids = c("A", "B"), .alphabet = "K", + .idvar = "ResponseId", .repeated = TRUE, .flipped = TRUE, .covariates = NULL,