Skip to content

Commit

Permalink
Ignore na's for stats
Browse files Browse the repository at this point in the history
  • Loading branch information
ldecicco-USGS committed Aug 11, 2020
1 parent 91a8eee commit 4e7dc0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/kalman_bootstrapping.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ makeMonths <- function(dailyBootOut, eList){
monthFluxPcts <- matrix(data = NA, nrow = nMonths, ncol = 11)
monthConcPcts <- matrix(data = NA, nrow = nMonths, ncol = 11)
for(iMonth in 1:nMonths){
monthFluxPcts[iMonth,] <- quantile(monthsFlux[iMonth,], probs = probs, type = 6)
monthConcPcts[iMonth,] <- quantile(monthsConc[iMonth,], probs = probs, type = 6)
monthFluxPcts[iMonth,] <- quantile(monthsFlux[iMonth,], probs = probs, type = 6, na.rm = TRUE)
monthConcPcts[iMonth,] <- quantile(monthsConc[iMonth,], probs = probs, type = 6, na.rm = TRUE)
}
monthPcts <- list(monthFluxPcts = monthFluxPcts,
monthConcPcts = monthConcPcts,
Expand Down

0 comments on commit 4e7dc0c

Please sign in to comment.