Learn R Programming

nhdplusTools (version 1.3.2)

align_nhdplus_names: Align NHD Dataset Names

Description

this function takes any NHDPlus dataset and aligns the attribute names with those used in nhdplusTools.

Usage

align_nhdplus_names(x)

Value

data.frame renamed sf object

Arguments

x

a sf object of nhdplus flowlines

Examples

Run this code
source(system.file("extdata/new_hope_data.R", package = "nhdplusTools"))

names(new_hope_flowline)

names(new_hope_flowline) <- tolower(names(new_hope_flowline))

new_hope_flowline <- align_nhdplus_names(new_hope_flowline)

names(new_hope_flowline)

Run the code above in your browser using DataLab