Skip to content

Commit

Permalink
maybe use left_distance and right_distance for determing extension di…
Browse files Browse the repository at this point in the history
…stance values in flag_transects_for_change()
  • Loading branch information
anguswg-ucsb committed Nov 21, 2024
1 parent 331a1cf commit ae63242
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/cs_improvements.R
Original file line number Diff line number Diff line change
Expand Up @@ -2802,6 +2802,10 @@ flag_transects_for_change <- function(
dplyr::mutate(
flagged = (!is_improved) & ((initial_length < cs_lengthm) | (left_distance > 0) | (right_distance > 0)),
extension_distance = ((cs_lengthm - initial_length) / 2)
# extension_distance = pmin(left_distance, right_distance)

# flagged = (!is_improved) & (initial_length < cs_lengthm),
# extension_distance = ((cs_lengthm - initial_length) / 2)
)

return(x)
Expand Down

0 comments on commit ae63242

Please sign in to comment.