Skip to content

Commit

Permalink
fix testing nEff being at least one
Browse files Browse the repository at this point in the history
  • Loading branch information
bgctw committed May 10, 2019
1 parent 76a907e commit f5b8062
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vignettes/aggUncertainty.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ aggDay <- results %>% group_by(DoY) %>%
, nEff = computeEffectiveNumObs(
resid, effAcf = !!autoCorr, na.rm = TRUE)
, NEE = mean(NEE_uStar_f, na.rm = TRUE)
, sdNEE = if (nEff == 0) NA_real_ else sqrt(
, sdNEE = if (nEff <= 1) NA_real_ else sqrt(
mean(NEE_uStar_fsd^2, na.rm = TRUE) / (nEff - 1))
, sdNEEuncorr = if (nRec == 0) NA_real_ else sqrt(
mean(NEE_uStar_fsd^2, na.rm = TRUE) / (nRec - 1))
Expand Down
2 changes: 1 addition & 1 deletion vignettes/aggUncertainty.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ of each day.
, nEff = computeEffectiveNumObs(
resid, effAcf = !!autoCorr, na.rm = TRUE)
, NEE = mean(NEE_uStar_f, na.rm = TRUE)
, sdNEE = if (nEff == 0) NA_real_ else sqrt(
, sdNEE = if (nEff <= 1) NA_real_ else sqrt(
mean(NEE_uStar_fsd^2, na.rm = TRUE) / (nEff - 1))
, sdNEEuncorr = if (nRec == 0) NA_real_ else sqrt(
mean(NEE_uStar_fsd^2, na.rm = TRUE) / (nRec - 1))
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f5b8062

Please sign in to comment.