list_rename: Rename a list

View source: R/universal_useful.R

list_renameR Documentation

Rename a list

Description

From krassowski on SO link

Usage

list_rename(.data, ...)

Arguments

.data

list To be renamed

...

named arguments in the form new_name = old_name (unquoted)

Value

list

Examples

my_list = list(a=1, b=2, c=3)
list_rename(my_list, x=a, y=b)

yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.