Learn R Programming

mark (version 0.8.1)

set_names0: Set names

Description

Sets or removes names

Usage

set_names0(x, nm = x)

names_switch(x)

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

Arguments

x

A vector of values

nm

A vector of names