Skip to content

Commit c1f7ae8

Browse files
committed
cata_code documentation
Specify that categ and resp should be unquoted names
1 parent 36f19f2 commit c1f7ae8

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

R/cata_code.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
#' use [cata_prep()] first to transform `data`into the proper format. See _Examples_.
1111
#'
1212
#' @inheritParams cata_prep
13-
#' @param categ Column in `data` indicating the check-all-that apply category labels.
14-
#' @param resp Column in `data` indicating the check-all-that apply responses.
15-
#' @param approach One of "all", "count", "multiple", "priority", or "mode". See _Details_.
13+
#' @param categ Unquoted column in `data` indicating the check-all-that apply category labels.
14+
#' @param resp Unquoted column in `data` indicating the check-all-that apply responses.
15+
#' @param approach One of "all", "counts", "multiple", "priority", or "mode". See _Details_.
1616
#' @param endorse The value in `resp` indicating endorsement of the category in `categ`. This must be the same for all categories.
1717
#' Common values are 1 (default), "yes", TRUE, or 2 (for SPSS data).
1818
#' @param priority Character vector of one or more categories in the `categ` column indicating the order to prioritize
@@ -28,12 +28,12 @@
2828
#'
2929
#' There are two options for `approach` that provide summary information rather than a single code for each `id`.
3030
#'
31-
#' *`"all"` returns a data frame with `new.name` variable comprised of all categories
31+
#' `"all"` returns a data frame with `new.name` variable comprised of all categories
3232
#' endorsed by separated by `sep`. The `time` argument is ignored when `approach = "all"`. Rather,
3333
#' if `data` includes a column for time, then output includes a row for each `id` at each time point.
3434
#' This approach is a useful exploratory first step for identifying all of the response patterns present in the data.
3535
#'
36-
#' *`"counts"` is only relevant for longitudinal data and returns a data frame with the number of times an `id` endorsed
36+
#' `"counts"` is only relevant for longitudinal data and returns a data frame with the number of times an `id` endorsed
3737
#' a category. Only categories with >= 1 endorsement are included for a particular `id`. As with `"all"`, the `time` argument
3838
#' is ignored and instead assumes `data` is in longer format with a row for each `id` by `time` combination. If not,
3939
#' the column of counts will be 1 for all rows.
@@ -44,12 +44,12 @@
4444
#' participants who only selected one category will be given that code in the output
4545
#' regardless of which approach is chosen.
4646
#'
47-
#' *`"multiple"` If participant endorsed multiple categories within or across time, code as `multi.name`.
47+
#' `"multiple"` If participant endorsed multiple categories within or across time, code as `multi.name`.
4848
#'
49-
#' *`"priority"` Same as "multiple" unless participant endorsed category in `priority` argument at any point.
49+
#' `"priority"` Same as "multiple" unless participant endorsed category in `priority` argument at any point.
5050
#' If so, then code in order specified in `priority`.
5151
#'
52-
#' *`"mode"` Participant is coded as the category with the mode (i.e., most common) endorsement across all time points.
52+
#' `"mode"` Participant is coded as the category with the mode (i.e., most common) endorsement across all time points.
5353
#' Ties are coded as as the value given in `multi.name`. If the `priority` argument is specified, these categories are prioritized
5454
#' first, followed by the mode response. The `"mode"` approach is only relevant if `time` is specified.
5555
#' When `time = NULL` it operates as `"priority"` (when specified) or `"multiple"`.

man/cata_code.Rd

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)