View source: R/class-discrepancy.R
dh.classDiscrepancy | R Documentation |
Either through using ds.dataFrameFill, or due to mistakes in uploading data, the same variable may have a different class across cohorts. This can create problems as many DataSHIELD functions require the input variable to have the same class in all studies. This function produces a tibble showing the class of each variable.
dh.classDiscrepancy(df = NULL, vars = NULL, conns = NULL, checks = TRUE)
df |
Character specifying a server-side data frame. |
vars |
Optionally, a character vector specifying columns within |
conns |
DataSHIELD connections object. |
checks |
Logical; if TRUE checks are performed prior to running the function. Default is TRUE. |
A tibble with columns for each variable and rows for each cohort describing the class of the variable, with an additional column 'discrepancy' summarising whether there are differences between cohorts.
Other descriptive functions:
dh.anyData()
,
dh.createTableOne()
,
dh.getStats()
,
dh.lmTab()
,
dh.meanByGroup()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.