Skip to content

Commit

Permalink
BRI is NA when only one measure
Browse files Browse the repository at this point in the history
  • Loading branch information
lvaudor committed Feb 7, 2022
1 parent 62aa706 commit 2a70569
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/braidHymo_one.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ braidHymo_one=function(rivdata, area, points_space){
W=WAC / (area ^ 0.44)) %>%
# in case there is only one measure for this cross-section,
# replace the BRI estimate (which is irrelevant) with a NA
dplyr::mutate(BRI_norm=dplyr::case_when((Nb_measure==1)~NA_real_,
!(Nb_measure==1)~BRI))
dplyr::mutate(BRI=dplyr::case_when((Nb_measure==1)~NA_real_,
!(Nb_measure==1)~BRI))
only_one_measure=tib_XS %>%
dplyr::filter(Nb_measure==1)
if(nrow(only_one_measure)>0){
Expand Down

0 comments on commit 2a70569

Please sign in to comment.