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)

remove_names(x)

names_switch(x)

x %names% nm

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 Aug. 7, 2022, 1:05 a.m.