rekey: Rename key names

View source: R/rekey.R

rekeyR Documentation

Rename key names

Description

Rename key names

Usage

rekey(.data, ...)

## S3 method for class 'navigatr_nav'
rekey(.data, ...)

## S3 method for class 'navigatr_item'
rekey(.data, ...)

rekey_with(.data, .fn, .keys = tidyselect::everything(), ...)

Arguments

.data

For rekey(), A navigatr_nav or navigatr_item object. For rekey_with(), A navigatr_nav object.

...

For navigatr_nav objects, use new_name = old_name. For navigatr_item objects, a scalar character of the new key name.

.fn

A function used to transform the selected .keys.

.keys

Keys to rename; defaults to all keys.

Value

A navigatr_nav or navigatr_item object.


navigatr documentation built on March 31, 2023, 9:42 p.m.