dropvars: drops or keeps variables from a dataframe

Description Usage Arguments Value Examples

View source: R/datautilities.R

Description

drops or keeps variables from a dataframe

Usage

1
dropvars(dat, x)

Arguments

dat

A data frame

x

A vector of variables to be dropped

Value

A dataframe

Examples

1
2
3
data(mtcars)
dvars<-c("am", "cyl", "wt")
newdat<-dropvars(mtcars, dvars)

wadetj/timsRstuff documentation built on May 13, 2020, 3:31 a.m.