.extract_columns | R Documentation |
This function extracts the specified columns from a data frame for the given samples.
.extract_columns(
df,
column_names = c("VAS", "utility_3L", "utility_5L", "utility_xw"),
sample_indices
)
df |
A data frame from which to extract columns. |
column_names |
A character vector of the names of the columns to be extracted from df. |
sample_indices |
An array of sampled indices, each element of the array represents the index of a row in df. |
A list of arrays, with each array containing the values of the respective column for the sampled indices. Each array has the same dimensions as sampledIndices. The names of the list elements are the names of column_names.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.