From 58c4c6079aed49656049151bbb8ac006d6d1bc94 Mon Sep 17 00:00:00 2001 From: "Andrew G. Brown" Date: Wed, 8 Mar 2023 11:54:00 -0800 Subject: [PATCH] get_site_data_from_NASIS_db: fix selected set argument - didn't get ecosite data from whole local with SS=F --- R/get_site_data_from_NASIS_db.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/get_site_data_from_NASIS_db.R b/R/get_site_data_from_NASIS_db.R index 95cc5480..84e048ab 100644 --- a/R/get_site_data_from_NASIS_db.R +++ b/R/get_site_data_from_NASIS_db.R @@ -154,7 +154,7 @@ ORDER BY pedon_View_1.peiid ;" } # join in "best" ecological site - bes <- get_ecosite_history_from_NASIS_db(SS = TRUE, best = TRUE, dsn = dsn) + bes <- get_ecosite_history_from_NASIS_db(SS = SS, best = TRUE, dsn = dsn) if (length(bes) > 0) { d2 <- merge(d2, bes, by = "siteiid", all.x = TRUE, sort = FALSE) }