View source: R/design_structure.R
| select_variables | R Documentation |
Select or remove study variables
select_variables(data, keep = NULL, drop = NULL)
data |
Base |
keep |
Variables to retain, in the order given. A character vector of
column names, or |
drop |
Variables to remove, the others keeping their order. A character
vector of column names, or |
A simulab_sim base data.frame with every row of data and the
requested variables.
data <- data.frame(id = 1:5, keep_me = 1:5, drop_me = 6:10)
select_variables(data, keep = c("id", "keep_me"))
select_variables(data, drop = "drop_me")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.