map_varnames.Rd
Use the internal table mapping
to transform the internal data into the
form used by the imported model.
map_varnames(data = NULL, outcome = "overweight-4y", version = "20230905")
Target data, e.g. as produced by collect_predictors()
Character. Currently only "overweight-4y"
Character. Version number.
A tibble with 1 row containing person data
library(bdsreader)
fn <- system.file("examples/test.json", package = "bdsreader")
m <- bdsreader::read_bds(fn)
x <- collect_predictors(m, purpose = "model")
ex <- map_varnames(x)