Learn R Programming

hydroloom (version 1.1.0)

align_names: Align Names to Hydroloom Convention

Description

this function aligns the attribute names in x with those used in hydroloom. See hydroloom_names for how to add more attribute name mappings if the attributes in your data are not supported.

See hydroloom_name_definitions for definitions of the names used in hydroloom.

Usage

align_names(x)

Value

data.frame renamed to match hydroloom as possible.

Arguments

x

data.frame network compatible with hydroloom_names.

Examples

Run this code
x <- sf::read_sf(system.file("extdata/new_hope.gpkg", package = "hydroloom"))

names(x)

x <- align_names(x)

names(x)

Run the code above in your browser using DataLab