Skip to content

Commit e369a97

Browse files
committed
updating documentation
1 parent 383ed80 commit e369a97

6 files changed

Lines changed: 62 additions & 4 deletions

File tree

StreamNetworkTools.docx

-35 Bytes
Binary file not shown.

StreamNetworkTools/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.Rproj.user
22
.Rhistory
33
.RData
4+
inst/doc

StreamNetworkTools/DESCRIPTION

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
Package: StreamNetworkTools
22
Title: Chracterizing Topology and Planform Geometry of NHDPlusV2 Stream Networks
3-
Version: 0.0.0.9000
3+
Version: 1.0.0.000
44
Authors@R: person("Darin", "Kopp", email = "darinkopp@gmail.com", role = c("aut", "cre"))
5-
Description: Chracterizing Topology and Planform Geometry of NHDPlusV2 Stream Networks is initiated by a set of user defined sampling points or a random sample of stream reaches of a specified order. From the sites, all upstream tributaries are identified and assembled into indvidual networks. All subsequent functions are excuted with these networks as inputs and are categorized into Network-Scale Topology, Path-Scale Position (Currently Unavailable), Reach-Scale Planform Geometry and
6-
NHDPlusV2 Value-Added Attribute and StreamCat Attribute (Currently Unavailable) Queries. Catchments associated with each reach can also be identified and be used to allocate other potential covariates of interest at different scales.
5+
Description: An R package to derive covariates from the NHDPlusV2 dataset and faciliate continental scale analyses of river networks.
76
Depends: R (>= 3.4.2)
87
License: Ask Mike
98
Encoding: UTF-8
@@ -13,5 +12,9 @@ Imports: foreign,
1312
sp,
1413
rgdal,
1514
rgeos,
16-
dplyr
15+
dplyr,
16+
reshape2
1717
RoxygenNote: 6.1.0
18+
Suggests: knitr,
19+
rmarkdown
20+
VignetteBuilder: knitr
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# example workflow for StreamNetworkTools
2+
remove.packages("StreamNetworkTools")
3+
4+
# install devtools if not already
5+
#install.packages(devtools)
6+
library("devtools")
7+
#install StreamNetworkTools from github repository
8+
#install_git("https://github.com/dkopp3/StreamNetworkTools_git.git", subdir = "StreamNetworkTools")
9+
library(StreamNetworkTools)
10+
11+
#check package help
12+
help(package="StreamNetworkTools")
13+
14+
# to begin download NHDPlusV2 data for Vector Processing Unit (VPU) of interest
15+
# here we are using VPU 11 which includes Arkansas, Red and White River basins
16+
# check function documentation for further details
17+
# setwd to example folder - where NHDPlusV2 data will be downloaded
18+
# this is mostly to keep myself organized
19+
setwd("C:/Users/Darin/Dropbox/Dissertation/Chapter_2_StreamNetworkTools/StreamNetworkTools_git/Example_Data")
20+
21+
?net_nhdplus
22+
net_nhdplus(nhdplus_path = getwd(), download = "http",
23+
vpu = 11, files = ALL, zip_7 = "C:/Program Files/7-Zip")
24+
25+
26+
9.25 KB
Binary file not shown.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: "StreamNetworkTools Vignette"
3+
author: "Darin Kopp"
4+
date: "`r Sys.Date()`"
5+
output: rmarkdown::html_vignette
6+
vignette: >
7+
%\VignetteIndexEntry{StreamNetworkTools Vignette}
8+
%\VignetteEngine{knitr::rmarkdown}
9+
%\VignetteEncoding{UTF-8}
10+
---
11+
12+
```{r setup, include = FALSE}
13+
knitr::opts_chunk$set(
14+
collapse = TRUE,
15+
comment = "#>"
16+
)
17+
```
18+
19+
This vignette discusses the useage of StreamNetworkTools, an R package to derive covariates from NHDPlusV2 dataset and faciliate large (continental) scale analyses of river networks.
20+
21+
Installing StreamNetworkTools*
22+
1) library("devtools")
23+
install_git("https://github.com/dkopp3/StreamNetworkTools_git.git", subdir = "StreamNetworkTools")
24+
2) install_github(“dkopp3/StreamNetworkTools_git”, subdir = "StreamNetworkTools")
25+
26+
27+
28+

0 commit comments

Comments
 (0)