give_names: change vector, dataframe or matrix names

Description Usage Arguments Value

View source: R/give_names.R

Description

change vector, dataframe or matrix names

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
give_names(data, ...)

## S3 method for class 'character'
give_names(data, ...)

## S3 method for class 'numeric'
give_names(data, ...)

## S3 method for class 'logical'
give_names(data, ...)

## S3 method for class 'list'
give_names(data, ...)

## S3 method for class 'data.frame'
give_names(data, ..., row = FALSE)

## S3 method for class 'matrix'
give_names(data, ..., row = FALSE)

Arguments

data

one vector, list, dataframe or matrix

...

one or more names

row

logical, whether the names is row names. Default is FALSE

Value

names changed data


do documentation built on Aug. 3, 2021, 5:06 p.m.