View source: R/select_first_CCAPS.R
select_first_CCAPS | R Documentation |
Select each client's first administration of a specified survey
select_first_CCAPS(
data,
order_by = "Date",
keep_all = FALSE,
keep_columns = c("UniqueClientID", "CcmhID", "Data_year", "Depression34", "Anxiety34",
"Social_Anxiety34", "Academics34", "Eating34", "Hostility34", "Alcohol34", "DI",
"Depression62", "Eating62", "Substance62", "Anxiety62", "Hostility62",
"Social_Anxiety62", "Family62", "Academics62"),
by_year = FALSE
)
select_first_SDS(
data,
order_by = "Date",
keep_all = FALSE,
keep_columns = "SDS",
by_year = FALSE
)
select_first_CLICC(
data,
order_by = "Date",
keep_all = FALSE,
keep_columns = "CLICC",
by_year = FALSE,
recode_NA = FALSE
)
select_first_Closure(
data,
order_by = "Date",
keep_all = FALSE,
keep_columns = "Closure",
by_year = FALSE,
recode_NA = FALSE
)
data |
data frame |
order_by |
variable to order by when selecting the first administration. |
keep_all |
Columns to keep. |
keep_columns |
A string list of column names to retain. If not specified, and keep_all = FALSE, defaults to the relevent columns for that data form. |
by_year |
A logical statement to indicate if first administration by year instead of overall. If |
recode_NA |
A logical statement to indicate if NA should be recoded to 0. If |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.