Skip to contents

Get a Set of Column Names from a Data Frame Defining Selections

Usage

get_selection(
  number = 1,
  data = NULL,
  reader = read_csv_file,
  ...,
  column = paste0("select.", number),
  target = "column"
)

Arguments

number

number of the selection group, default: 1

data

data frame defining groups of columns

reader

reader function providing data. Default: kwb.prep:::read_csv_file

...

arguments passed to the reader function

column

name of column in data containing numbers to indicate which columns to select in which order

target

name of column in data containing the column names

Value

vector of column names