dot-extract_columns: .extract_columns

.extract_columnsR Documentation

.extract_columns

Description

This function extracts the specified columns from a data frame for the given samples.

Usage

.extract_columns(
  df,
  column_names = c("VAS", "utility_3L", "utility_5L", "utility_xw"),
  sample_indices
)

Arguments

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.

Value

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.


valueSetCompare documentation built on June 22, 2024, 6:57 p.m.