drop_unspec_vars | R Documentation |
This function drops all unspecified variables. It will throw and error if the dataset does not contain all expected variables.
drop_unspec_vars(dataset, metacore, dataset_name = deprecated())
Dataset with only specified columns
library(metacore)
library(haven)
library(dplyr)
load(metacore_example("pilot_ADaM.rda"))
spec <- metacore %>% select_dataset("ADSL")
data <- read_xpt(metatools_example("adsl.xpt")) %>%
select(USUBJID, SITEID) %>%
mutate(foo = "Hello")
drop_unspec_vars(data, spec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.