keep_required_columns: ############################################################################...

View source: R/IPDFilecheck.R

keep_required_columnsR Documentation

############################################################################ Function to keep only certain variables

Description

############################################################################ Function to keep only certain variables

Usage

keep_required_columns(variables, the_data)

Arguments

variables

list of variables

the_data

data to be sub setting

Value

subset

Examples

the_data <- data.frame("Age" = c(21, 15), "sex" = c("m", "f"))
variable <- "Age"
keep_required_columns(variable, the_data)

sheejamk/IPDFileCheck documentation built on March 10, 2024, 3:14 p.m.