README.md

rivertopo

Travis build
status

The goal of rivertopo is to simplify a given tree topology (ie. for River network) with given locations. For example:

# resulted river topology
data.frame(from = c("Vertex1", "Vertex2"), to = c("Vertex2", "Vertex3"))
#>      from      to
#> 1 Vertex1 Vertex2
#> 2 Vertex2 Vertex3
# given location point:
data.frame(id = c("Point1", "Point2", "Point3"),
                   lat = c(42.032974, 44.032323, 47.123123),
                   long = c(-93.581543, -92.58345343, -96.2324543),
                   stringsAsFactors = FALSE)
#>       id      lat      long
#> 1 Point1 42.03297 -93.58154
#> 2 Point2 44.03232 -92.58345
#> 3 Point3 47.12312 -96.23245

# resulted location topology:
data.frame(from = c("Point1", "Point2"), to = c("Point2", "Point3"))
#>     from     to
#> 1 Point1 Point2
#> 2 Point2 Point3

Installation

You can install the released version of rivertopo from CRAN with:

devtools::install_github("WeiquanLuo/rivertopo")
# install.packages("rivertopo") # not yet avaliable

Workflow

Workflow for rivertopo

Example

result

bnresult



WeiquanLuo/rivertopo documentation built on Jan. 28, 2020, 11:39 a.m.