diff --git a/DESCRIPTION b/DESCRIPTION index a882381..8afc74d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -8,11 +8,11 @@ Description: Calculates scores for hydrology, water quality, human health, and License: MIT + file LICENSE Encoding: UTF-8 Roxygen: list(markdown = TRUE) -RoxygenNote: 7.2.3 +RoxygenNote: 7.3.2 URL: https://github.com/LimnoTech/SCI, https://limnotech.github.io/SCI/ BugReports: https://github.com/LimnoTech/SCI/issues Depends: - R (>= 2.10) + R (>= 3.5) LazyData: true Imports: dplyr, diff --git a/SCI.Rproj b/SCI.Rproj index 69fafd4..ba2cd7f 100644 --- a/SCI.Rproj +++ b/SCI.Rproj @@ -1,4 +1,5 @@ Version: 1.0 +ProjectId: 65053fec-399a-4df5-83e9-a4cd047f8382 RestoreWorkspace: No SaveWorkspace: No diff --git a/data/location_name.rda b/data/location_name.rda index c421d40..6ad0fae 100644 Binary files a/data/location_name.rda and b/data/location_name.rda differ diff --git a/data/lookup_tables.xlsx b/data/lookup_tables.xlsx index e2a28cb..1c15121 100644 Binary files a/data/lookup_tables.xlsx and b/data/lookup_tables.xlsx differ diff --git a/data/~$ARII_Xtab_AmbWQ_SCI.xlsx b/data/~$ARII_Xtab_AmbWQ_SCI.xlsx deleted file mode 100644 index 2a747b8..0000000 Binary files a/data/~$ARII_Xtab_AmbWQ_SCI.xlsx and /dev/null differ diff --git a/data/~$lookup_tables.xlsx b/data/~$lookup_tables.xlsx deleted file mode 100644 index 2a747b8..0000000 Binary files a/data/~$lookup_tables.xlsx and /dev/null differ diff --git a/output/all_scores.csv b/output/all_scores.csv new file mode 100644 index 0000000..65b647c --- /dev/null +++ b/output/all_scores.csv @@ -0,0 +1,26 @@ +"","sci_subshed","Trash","Dumpsites","Effective Impervious Area","Temperature, water","pH","Dissolved oxygen (DO)","Escherichia coli","Turbidity","Conductivity","Nitrogen","Phosphorus, Total (as P)","Connectivity","Fish","Habitat","Macroinvertebrates" +"1","Battery Kemble Creek",8.43478260869565,10,6,10,10,10,7.17122657287291,10,1.32946707229891,1.1722461961956,10,10,3,4,7 +"2","Broad Branch",8.88235294117647,8,2,10,9.49484604605374,10,3.96201632162848,10,1.39551171022171,2.53189561427939,10,10,2,4,6 +"3","Dumbarton Oaks",10,10,4,10,10,10,8.54782802837774,10,1.70833294620897,1.32807710704536,2.8679579947462,10,3,5,7 +"4","Fenwick Branch",7.42857142857143,10,3,9.49476657878656,10,10,6.8791964501452,10,1.75285115573104,2.32427732195356,10,10,2,3,6 +"5","Fort Davis Tributary",8.33333333333333,2,2,10,10,10,4.56378937695466,3.40381314529514,1.28521704525446,0.950005376536892,1.78543632558786,1,1,5,5 +"6","Fort Dupont Tributary",7.64285714285714,7,8,10,10,8.19644566724721,4.39637929649141,3.667361623274,2.99612324159937,0.749069894299005,10,1,3,4,6 +"7","Fort Stanton Tributary",6.47058823529412,4,1,9.49458887028815,10,10,3.49306972579195,8.24161710963122,2.14961627380251,0.950005376536892,10,1,1,3,7 +"8","Foundry Branch",8.83333333333333,10,2,10,10,10,5.43588122762784,4.44089503244838,2.9615349603606,2.05698424129608,10,1,1,4,NA +"9","Hickey Run",8.03846153846154,10,9,9.32570696570447,10,9.31006357105735,1.71733915151806,7.52739827502453,1.92353016456839,0.749069894299005,2.7927191991411,10,6,2,4 +"10","Klingle Valley Run",6.25,10,2,10,10,10,6.5392010054142,10,2.16336911176854,1.52948677601239,10,10,2,3,6 +"11","Luzon Branch",5.2,10,1,10,10,10,2.74149789121648,5.16856938057974,1.68139016788936,2.13654818496565,2.91985046082419,10,2,3,6 +"12","Normanstone Creek",7.21428571428571,10,1,10,8.9888961180284,10,4.46891175504634,10,1.49230558316491,2.58568816872641,10,10,3,3,6 +"13","Oxon Run",5.85714285714286,8,1,9.49482509665549,10,10,4.08034192298863,7.26446748330366,2.73668115439965,0.677223449104501,0.963293817107756,10,4,4,4 +"14","Pinehurst Branch",8.66666666666667,10,6,10,9.45561327204199,10,6.86529198320573,10,1.64381726305677,2.53189561427939,10,10,2,4,5 +"15","Piney Branch",8,10,1,10,10,10,6.24485935433058,10,1.37920467622303,2.43350524767764,10,10,3,2,4 +"16","Pope Branch",8,10,3,10,10,10,6.70307871860358,4.63848137391428,2.04750999680075,0.950005376536892,10,1,4,7,8 +"17","Portal Branch",7,10,3,10,8.98692894850945,10,4.24400479220216,6.90674993457207,1.02448007263146,2.74453544775747,10,10,1,3,6 +"18","Reservation 630",9.21052631578947,10,3,9.49484222518253,10,10,4.89875662885154,6.54810880322023,1.95694969141548,2.32427732195356,10,10,4,7,7 +"19","Rock Creek",8.23913043478261,7,1,9.03991429859265,9.63931584712039,10,4.75298766520739,8.85351874858907,3.01758638876789,2.35646823207748,10,10,5,4,5 +"20","Soapstone Creek",8.71428571428571,10,1,10,8.98764540312439,10,6.80566463860387,10,1.91408087817814,2.53189561427939,2.88434296861746,10,2,3,6 +"21","Texas Avenue Tributary",7,10,3,10,10,10,3.54658539291944,7.3375495518317,1.74050116850977,0.837784090876652,10,1,1,4,3 +"22","Watts Branch",3.55,6,1,9.32024027311975,9.03799489304956,9.94283156569335,3.52383649640539,8.10990235278729,2.71307679688268,0.80598894736693,4.92721388547487,10,4,3,6 +"23","Dalecarlia Tributary",NA,10,4,9.49281310022025,9.49429215204554,10,2.26543812278347,7.88130147148155,1.57723215112077,1.64140564675688,1.50035060003774,1,2,3,6 +"24","Fort Chaplin Tributary",NA,10,2,10,10,9.44055926057385,3.66863632512962,8.77121712686461,2.01955422326341,1.09628813677057,10,1,1,4,3 +"25","Nash Run",NA,10,3,8.97058038494947,9.49162145959481,10,2.85130675778872,8.98648127446675,3.13741218623777,1.09628813677057,10,10,6,5,4 diff --git a/workflow.R b/workflow.R index 69b22c8..eba90f0 100644 --- a/workflow.R +++ b/workflow.R @@ -138,5 +138,10 @@ all_scores <- trash[["score"]] %>% dplyr::full_join(hab) %>% dplyr::full_join(macro) +# Write results file +write.csv(all_scores, "output/all_scores.csv") + + +