Learn R Programming

NCmisc (version 1.2.0)

rmv.names: 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)

Value

the original object but without names

Arguments

X

object for which you want to remove name

Author

Nicholas Cooper njcooper@gmx.co.uk

Examples

Run this code
x <- c(boo=1, hiss=2)
rmv.names(x)
X <- list(testing=c(1,2,3), thankyou=TRUE)
rmv.names(X)

Run the code above in your browser using DataLab