renamers: Rename identifiers in a mudata object

rename_locationsR Documentation

Rename identifiers in a mudata object

Description

These functions rename locations, datasets, params, and columns, making sure internal consistency is maintained. These functions use dplyr syntax for renaming (i.e. the rename function). This syntax can also be used while subsetting using select_locations and family.

Usage

rename_locations(.data, ...)

## Default S3 method:
rename_locations(.data, ...)

rename_params(.data, ...)

## Default S3 method:
rename_params(.data, ...)

rename_datasets(.data, ...)

## Default S3 method:
rename_datasets(.data, ...)

rename_columns(.data, ...)

## Default S3 method:
rename_columns(.data, ...)

Arguments

.data

A mudata object

...

Variables to rename in the form new_var = old_var

Value

A modified mudata object

See Also

rename, select_locations

Examples

rename_datasets(kentvillegreenwood, avalley = ecclimate)
rename_locations(kentvillegreenwood, Greenwood = starts_with("GREENWOOD"))
rename_params(kentvillegreenwood, max_temp = maxtemp)
rename_columns(kentvillegreenwood, lon = longitude, lat = latitude)


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