View source: R/find-vars-index.R
dh.findVarsIndex | R Documentation |
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.
dh.findVarsIndex(df = NULL, vars = NULL, conns = NULL, checks = TRUE)
df |
Character specifying a server-side data frame. |
vars |
Character vector of columns within |
conns |
DataSHIELD connections object. |
checks |
Logical; if TRUE checks are performed prior to running the function. Default is TRUE. |
Client-side list of indices corresponding to vars
, where the length
of the list corresponds to the number of cohorts included in conns
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.