Names: Dataset Names as a Character Vector, Always

Description Usage Arguments Value Author(s) Examples

Description

A convenience function using either character vectors or numeric vectors to specify a subset of names of a data.frame.

Usage

1
Names(data, invec)

Arguments

data

The input data.frame.

invec

The names you want.

Value

A character vector of the desired names.

Author(s)

Ananda Mahto

Examples

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

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