cept: Include all variables except ...

View source: R/utility.R

ceptR 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')


mmodely documentation built on May 31, 2023, 6:47 p.m.