View source: R/splitstackshape_helper_functions.R
| Names | R Documentation |
A convenience function using either character vectors or numeric vectors to
specify a subset of names of a data.frame.
Names(data, invec)
data |
The input |
invec |
The |
A character vector of the desired names.
Ananda Mahto
mydf <- data.frame(a = 1:2, b = 3:4, c = 5:6)
splitstackshape:::Names(mydf, c("a", "c"))
splitstackshape:::Names(mydf, c(1, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.