othernames: Extract All Names From a Dataset Other Than the Ones Listed

Description Usage Arguments Value Author(s) See Also Examples

Description

A convenience function for setdiff(names(data), -some_vector_of_names-).

Usage

1
othernames(data, toremove)

Arguments

data

The input data.frame.

toremove

The names you want to exclude.

Value

A character vector of the remaining names.

Author(s)

Ananda Mahto

See Also

base::setdiff()

Examples

1
2
mydf <- data.frame(a = 1:2, b = 3:4, c = 5:6)
splitstackshape:::othernames(mydf, "a")

mrdwab/splitstackshape documentation built on May 23, 2019, 7:16 a.m.