hy {hydroloom} | R Documentation |
Create a hy Fabric S3 Object
Description
converts a compatible dataset into a fabric s3 class
Usage
hy(x, clean = FALSE)
Arguments
x |
data.frame network compatible with hydroloom_names. |
clean |
logical if TRUE, geometry and non-hydroloom compatible attributes will be removed. |
Value
hy object with attributes compatible with the hydroloom package.
Examples
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")
[Package hydroloom version 1.0.2 Index]