set_var_types.xp_xtras | R Documentation |
<set_var_types
> wrapper that accepts tidyselect syntax.
Character vector-based selection still works.
set_var_types_x
accepts xpose_data
or xp_xtras
objects.
set_var_types
without _x
is defined with S3 methods. To maintain xpose
expectations,
the default method is <set_var_types
>, but if an xp_xtras
object
is used, the method uses set_var_types_x
.
## S3 method for class 'xp_xtras'
set_var_types(xpdb, .problem = NULL, ..., auto_factor = TRUE, quiet)
xpdb |
An |
.problem |
The problem number to which the edits will be applied. |
... |
< |
auto_factor |
If |
quiet |
Logical, if |
An xpose_data object
data("xpdb_ex_pk", package = "xpose")
# Change variable type
xpdb_2 <- set_var_types_x(
xpdb_ex_pk, .problem = 1,
idv = TAD,
catcov = starts_with("MED"),
contcov = c(CLCR,AGE)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.