Skip to contents

Some DataSHIELD functions require column indices as parameters. This is hqighly susceptable to breaking as changes in code will change the order of variables. This function allows you to specify the names of columns and returns their indices.

Usage

dh.findVarsIndex(df = NULL, vars = NULL, conns = NULL, checks = TRUE)

Arguments

df

Character specifying a server-side data frame.

vars

Character vector of columns within df for which to return the indices.

conns

DataSHIELD connections object.

checks

Logical; if TRUE checks are performed prior to running the function. Default is TRUE.

Value

Client-side list of indices corresponding to vars, where the length of the list corresponds to the number of cohorts included in conns.