dropr: drops a specified list of variables and keeps the rest

View source: R/dropr.R

droprR Documentation

drops a specified list of variables and keeps the rest

Description

dropr is used to drop a list of variables from a dataframe (and to keep the rest). Inspired by the "drop" command in Stata.

Usage

dropr(mydf, ...)

Arguments

mydf

the dataframe to be modified.

...

a list of the variables to be dropped.

Details

dropr is used internally by the fsm package.

Examples

mydf <- mtcars
mydf <- dropr(mydf, "am", "gear", "carb")
mydf


alexmitrani/humblr documentation built on April 4, 2022, 8:29 a.m.