cept {mmodely} | R Documentation |
Include all variables except ...
Description
This function takes a dataframe, list, or a named vector of variable (column) names to subset
Usage
cept(x,except='gn_sp')
Arguments
x |
a dataframe, list, or named vector |
except |
a vector of the names of the items in x to exclude |
Value
the subset of x without those 'except' items specified
Examples
data.path <- system.file("extdata","primate-example.data.csv", package="mmodely")
data <- read.csv(data.path, row.names=1)
df.except.gnsp <- cept(x=data,except='gn_sp')
[Package mmodely version 0.2.5 Index]