set_names0: Set names

View source: R/names.R

set_names0R Documentation

Set names

Description

Sets or removes names

Usage

set_names0(x, nm = x)

names_switch(x)

Arguments

x

A vector of values

nm

A vector of names

Value

  • set_names0(): x with nm values assigned to names (if x is NULL, NULL is returned)

  • remove_names(): x without names

  • names_switch(): character vector of equal length x where names and values are switched


mark documentation built on May 29, 2024, 5:13 a.m.