dropvars: drops or keeps variables from a dataframe

View source: R/datautilities.R

dropvarsR Documentation

drops or keeps variables from a dataframe

Description

drops or keeps variables from a dataframe

Usage

dropvars(dat, x)

Arguments

dat

A data frame

x

A vector of variables to be dropped

Value

A dataframe

Examples

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

wadetj/timsRstuff documentation built on April 24, 2023, 7:42 a.m.