getnames: Get the names of an object

Description Usage Arguments Details

View source: R/functions.R

Description

Get the names of an object

Usage

1
getnames(x, def = NULL)

Arguments

x

the object to extract names

def

the value to return if the object has NULL names. For vectorization purpose, set this to character(1L).

Details

This function is used in vectorization when the names of an object is to be supplied. NULL value will break the vectorization while setting def = character(1L) makes the names vectorizable.


rlist documentation built on Sept. 5, 2021, 5:30 p.m.