Learn R Programming

do (version 2.0.0.1)

give_names: change vector, dataframe or matrix names

Description

change vector, dataframe or matrix names

Usage

give_names(data, ...)

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

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

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

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

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

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

Value

names changed data

Arguments

data

one vector, list, dataframe or matrix

...

one or more names

row

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