set_vars | R Documentation |
Set analysis variables in an scdf
set_vars(data, dvar, mvar, pvar)
set_dvar(data, dvar)
set_mvar(data, mvar)
set_pvar(data, pvar)
data |
A single-case data frame. See |
dvar |
Character string. Name of the dependent variable. |
mvar |
Character string. Name of the measurement-time variable. |
pvar |
Character string. Name of the phase variable. |
Other data manipulation functions:
add_l2()
,
as.data.frame.scdf()
,
as_scdf()
,
fill_missing()
,
moving_median()
,
outlier()
,
ranks()
,
scdf()
,
select_cases()
,
shift()
,
smooth_cases()
,
standardize()
,
truncate_phase()
exampleAB_add %>%
set_dvar("depression") %>%
describe()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.