rename_cols_base: Rename a column in an object

View source: R/rename.R

rename_cols_baseR Documentation

Rename a column in an object

Description

Rename columns in a data frame or list

Usage

rename_cols_base(.data, ..., warn_missing = TRUE, warn_duplicated = TRUE)

## Default S3 method:
rename_cols_base(.data, ..., warn_missing = TRUE, warn_duplicated = TRUE)

Arguments

.data

An object that has columns that can be renamed

...

Key/value pairs to replace in the form oldval="newval"

warn_missing

Print a message if any old names are not actually present in x

warn_duplicated

Print a message if any name appears more than once in x after the operation.

Value

A copy of the modified object


mudata2 documentation built on Jan. 22, 2023, 1:48 a.m.