ChangeNames: Change Names

View source: R/basic_functions.R

ChangeNamesR Documentation

Change Names

Description

Change names, colnames or rownames of single items or a list of items

Usage

ChangeNames(
  x,
  names,
  single.items = FALSE,
  row.names = FALSE,
  param = NULL,
  where = NULL,
  environment = NULL
)

Arguments

x

list, vector, matrix, dataframe or a list of such items

names

names to insert

single.items

logical, indicating whether or not to use names rather than colnames or rownames, Default: FALSE

row.names

logical, indicating whether or not to use rownames rather than colnames, Default: FALSE

param

Variable name, Default: NULL

where

select parents, Default: NULL

environment

select reference environment, Default: NULL

Value

returns Named items # ABC <- c("1","2","3") # "1" "2" "3" # ChangeNames(ABC, names = c("A","B","C") , single.items = TRUE) # A B C # "1" "2" "3"


bfw documentation built on March 18, 2022, 6:19 p.m.