Learn R Programming

rlist (version 0.4.6.2)

getnames: Get the names of an object

Description

Get the names of an object

Usage

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.