Learn R Programming

hydroloom (version 1.1.0)

hy: Create a hy Fabric S3 Object

Description

converts a compatible dataset into a fabric s3 class

Usage

hy(x, clean = FALSE)

Value

hy object with attributes compatible with the hydroloom package.

Arguments

x

data.frame network compatible with hydroloom_names.

clean

logical if TRUE, geometry and non-hydroloom compatible attributes will be removed.

Examples

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

hy(x)

hy(x, clean = TRUE)[1:10,]

attr(hy(x), "orig_names")

Run the code above in your browser using DataLab