ChangeNames: Change Names

Description Usage Arguments Value

View source: R/basic_functions.R

Description

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

Usage

1
2
3
4
5
6
7
8
9
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 Jan. 11, 2020, 9:29 a.m.