prepare_data | R Documentation |
This function takes a data frame and a vector of variable names to be included and performs several steps to prepare the data for analysis. It adds computed variables, subsets the data to include only specified variables, labels the data, and returns the prepared data frame.
prepare_data(
data,
variables.to.be.included = get_default_variables_to_be_included()
)
data |
A data frame containing the raw data to be prepared. |
variables.to.be.included |
A character vector specifying the
names of variables to be included in the prepared data. Default
is to include the default set of variables returned by
|
A prepared data frame with added variables, subsetted columns, and labeled data.
prepared.data <- prepare_data(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.