rmv.names: Remove names from a named vector or list

View source: R/NCmisc.R

rmv.namesR 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)

NCmisc documentation built on Oct. 17, 2022, 5:09 p.m.