Skip to content

Commit

Permalink
Merge pull request #67 from ldecicco-USGS/master
Browse files Browse the repository at this point in the history
Ignore na's for stats
  • Loading branch information
ldecicco-USGS committed Aug 11, 2020
2 parents 8570ea3 + 4e7dc0c commit 786045d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/kalman_bootstrapping.R
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 786045d

Please sign in to comment.