From 6abaa6427e85ea5ae6135551505774a0b22cac94 Mon Sep 17 00:00:00 2001 From: David Blodgett Date: Thu, 22 Aug 2019 09:31:26 -0500 Subject: [PATCH] pkgdown --- docs/articles/nhdplusTools.html | 8 ++-- docs/index.html | 2 +- docs/reference/discover_nhdplus_id.html | 15 ++------ docs/reference/get_nhdplushr.html | 1 + docs/reference/get_nldi_basin-1.png | Bin 42079 -> 39616 bytes docs/reference/get_nldi_basin.html | 25 +++++++------ docs/reference/navigate_nldi.html | 30 ++------------- docs/reference/stage_national_data.html | 17 ++++++--- docs/reference/subset_nhdplus.html | 47 ++++++++++++------------ 9 files changed, 64 insertions(+), 81 deletions(-) diff --git a/docs/articles/nhdplusTools.html b/docs/articles/nhdplusTools.html index 35fd358a..ad2be0b5 100644 --- a/docs/articles/nhdplusTools.html +++ b/docs/articles/nhdplusTools.html @@ -164,15 +164,15 @@

+#> [1] "/var/folders/p6/kr6wq6bj7wvdz1qywzhksz5h001t8d/T//RtmpfV92YJ/natseamless.gpkg"

If you are going to be loading and reloading the flowlines, flowline attributes, or catchments, repeatadly, the stage_national_data() function will speed things up a bit. It creates three staged files that are quicker for R to read at the path you tell it. If you call it and its output files exist, it won’t overwrite and just return the paths to your staged files.

+#> $ attributes: chr "/var/folders/p6/kr6wq6bj7wvdz1qywzhksz5h001t8d/T//RtmpfV92YJ/nhdplus_flowline_attributes.rds" +#> $ flowline : chr "/var/folders/p6/kr6wq6bj7wvdz1qywzhksz5h001t8d/T//RtmpfV92YJ/nhdplus_flowline.rds" +#> $ catchment : chr "/var/folders/p6/kr6wq6bj7wvdz1qywzhksz5h001t8d/T//RtmpfV92YJ/nhdplus_catchment.rds"

As you can see, stage_national_data() assumes you want to stage data in the same folder as the nhdplus_path database and returns a list of .rds files that can be read with readRDS. The flowlines and catchments are sf data.frames and attributes is a plain data.frame with the attributes from flowline. Note that this introduction uses a small subset of the national seamless database as shown in the plot.

flowline <- readRDS(staged_data$flowline)
 names(flowline)[1:10]
diff --git a/docs/index.html b/docs/index.html
index bcc0c702..b3058afa 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -10,7 +10,7 @@
 
 
 
-
+