get_names: Error-proof wrapper around 'names()'

Description Usage Value Examples

View source: R/list_helpers.R

Description

Check names of an argument and always return character vector, no NAs or NULL

Usage

1

Value

character vector of names or empty strings

Examples

1
2
3
get_names(NULL) # returns character(0)
get_names(0) # returns ""
get_names(list(x = 1, y = 2)) # returns c("x", "y")

avidclam/avidstart documentation built on May 17, 2019, 10:01 a.m.