Removes cases from dataframe

Share:

Description

Removes cases from dataframe. Cases can be numeric or character. If numeric, rownames must be able to be converted to numeric. Returns warning if cases not found in dataframe.

Usage

1
dfRemoveCases(Data, Cases)

Arguments

Data

a dataframe

Cases

a vector of numeric or character case IDs

Value

Returns dataframe with cases removed.

Author(s)

John J. Curtin jjcurtin@wisc.edu

Examples

1
2
d = dfRemoveCases(Prestige, c('bookbinders')) #data from car package
d = dfRemoveCases(Davis, c(1,2,4))        #data from car package

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.