rekey {navigatr}R 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.


[Package navigatr version 0.2.1 Index]