preproc_data | R Documentation |
Accepts a data frame containing raw data and calculates performance indices using a user-defined function.
preproc_data(
data,
fn,
...,
col_raw_parsed = "raw_parsed",
pivot_results = TRUE,
pivot_names_to = "index_name",
pivot_values_to = "score"
)
data |
A data.frame contains raw data. |
fn |
This can be a function or formula. See |
... |
Additional arguments passed to |
col_raw_parsed |
The column name in which stores user's raw data in format of a list of data.frames. |
pivot_results |
Whether to pivot the calculated indices. If |
pivot_names_to , pivot_values_to |
The column names used to store index
names and values if |
Observations with empty raw data (empty vector, e.g. NULL
, in
col_raw_parsed
column) are removed before calculating indices. If no
observations left after removing, a warning is signaled and NULL
is
returned.
A data.frame contains the calculated indices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.