Calculate trash scores.
Arguments
- df_reach
Reach data from Rapid Stream Assessment (RSA) dataset.
- reach_prefix_from_table
Field name prefix sourced from RSA reach attribute table. Should be consistent with the name of the stream reach attribute table from the RSA geodatabase.
- reach_prefix_from_layer
Field name prefix sourced from RSA stream reach layer. Should be consistent with the name of the stream reach polyline layer from the RSA geodatabase.
Examples
assess_trash(df_reach_example,
"StreamReachAttributes",
"StreamReaches")
#> $summary
#> # A tibble: 863 × 7
#> location_name id date trash_extent score sci_subshed
#> <chr> <chr> <dttm> <chr> <dbl> <chr>
#> 1 Hickey Run {000… 2024-10-04 15:09:00 extensive 1 Hickey Run
#> 2 Piney Branch {001… 2024-06-11 16:37:00 absent 10 Piney Bran…
#> 3 NA {003… 2022-06-08 17:06:00 absent 10 NA
#> 4 Pinehurst Branch {004… 2024-05-31 14:58:00 absent 10 Pinehurst …
#> 5 Rock Creek {008… 2021-07-08 13:42:00 absent 10 Rock Creek
#> 6 NA {015… 2021-07-29 16:44:00 minor 7 NA
#> 7 Rock Creek {01A… 2019-10-17 13:50:00 minor 7 Rock Creek
#> 8 Broad Branch {024… 2023-08-25 19:20:00 minor 7 Broad Bran…
#> 9 Broad Branch {027… 2023-08-25 19:43:00 minor 7 Broad Bran…
#> 10 Fort Davis Tributary {02A… 2024-09-17 16:35:00 absent 10 Fort Davis…
#> # ℹ 853 more rows
#> # ℹ 1 more variable: ecoregion <chr>
#>
#> $score
#> # A tibble: 25 × 2
#> sci_subshed Trash
#> <chr> <dbl>
#> 1 Battery Kemble Creek 8.38
#> 2 Broad Branch 8.65
#> 3 Dalecarlia Tributary 9.25
#> 4 Dumbarton Oaks 7.75
#> 5 Fenwick Branch 7.43
#> 6 Fort Chaplin Tributary 2.5
#> 7 Fort Davis Tributary 7.27
#> 8 Fort Dupont Tributary 7.51
#> 9 Fort Stanton Tributary 6.57
#> 10 Foundry Branch 8.92
#> # ℹ 15 more rows
#>