| as_scdf | R Documentation |
Converts a data frame to an scdf object.
as_scdf(
object,
cvar = "case",
pvar = "phase",
dvar = "values",
mvar = "mt",
phase_names = NULL,
sort_cases = FALSE
)
object |
A data.frame |
cvar |
Sets the "case" variable. Defaults to |
pvar |
Sets the "phase" variable. Defaults to |
dvar |
Sets the "values" variable. Defaults to |
mvar |
Sets the variable name of the "mt" variable. Defaults to |
phase_names |
A character vector with phase names. Defaults to the phase names provided in the phase variable. |
sort_cases |
If set TRUE, the resulting list is sorted by label names (alphabetically increasing). |
An scdf.
Other data manipulation functions:
add_l2(),
as.data.frame.scdf(),
fill_missing(),
moving_median(),
print.sc_outlier(),
ranks(),
rescale(),
scdf(),
select_cases(),
set_vars(),
shift(),
smooth_cases(),
standardize(),
truncate_phase()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.