rmv.names {NCmisc} | R Documentation |
Remove names from a named vector or list
Description
Convenience function, it's very easy to set names to NULL, but this requires a dedicated line of code. Using this function can make your code simpler.
Usage
rmv.names(X)
Arguments
X |
object for which you want to remove name |
Value
the original object but without names
Author(s)
Nicholas Cooper njcooper@gmx.co.uk
Examples
x <- c(boo=1, hiss=2)
rmv.names(x)
X <- list(testing=c(1,2,3), thankyou=TRUE)
rmv.names(X)
[Package NCmisc version 1.2.0 Index]