Skip to contents

Calculate dumpsite scores

Usage

assess_dumpsites(
  df_point,
  df_reach,
  reach_prefix_from_table,
  reach_prefix_from_layer,
  point_prefix_from_table,
  point_prefix_from_layer
)

Arguments

df_point

Point data from Rapid Stream Assessment (RSA) dataset.

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.

point_prefix_from_table

Field name prefix sourced from RSA point attribute table. Should be consistent with the name of the point assessment attribute table from the RSA geodatabase.

point_prefix_from_layer

Field name prefix sourced from RSA point layer. Should be consistent with the name of the intersected stream point layer from the RSA geodatabase.

Value

List of 2 dataframes: summary and score.

Examples

assess_dumpsites(df_point_example,
                           df_reach_example,
                           "StreamReachAttributes",
                           "StreamReaches",
                           "StreamPointAttributes",
                           "StreamPoints_Intersect" )
#> $summary
#> # A tibble: 9 × 8
#> # Rowwise: 
#>   sci_subshed            dumpsite_count applied_influence subshed_length_meters
#>   <chr>                           <int>             <dbl>                 <dbl>
#> 1 Broad Branch                        2                -1                 9840.
#> 2 Fort Davis Tributary                3                -2                 1469.
#> 3 Fort Dupont Tributary               6                -2                 9175.
#> 4 Fort Stanton Tributary              1                -2                 2507.
#> 5 Normanstone Creek                   2                -1                 3527.
#> 6 Oxon Run                            1                -1                10144.
#> 7 Pinehurst Branch                    1                -1                 6001.
#> 8 Rock Creek                          4                -2                38328.
#> 9 Watts Branch                        2                -2                 6035.
#> # ℹ 4 more variables: subshed_length_miles <dbl>, sites_per_mile <dbl>,
#> #   score <dbl>, score_weighted <dbl>
#> 
#> $score
#> # A tibble: 25 × 2
#> # Rowwise: 
#>    sci_subshed            Dumpsites
#>    <chr>                      <dbl>
#>  1 Broad Branch                   7
#>  2 Fort Davis Tributary           1
#>  3 Fort Dupont Tributary          2
#>  4 Fort Stanton Tributary         4
#>  5 Normanstone Creek              4
#>  6 Oxon Run                       8
#>  7 Pinehurst Branch               7
#>  8 Rock Creek                     7
#>  9 Watts Branch                   5
#> 10 Battery Kemble Creek          10
#> # ℹ 15 more rows
#>