Skip to content

Commit

Permalink
fix comments in anlz_fibmatrix, remove extra global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
fawda123 committed Dec 8, 2024
1 parent a93dafa commit f0172c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/anlz_fibmatrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ anlz_fibmatrix <- function(fibdata, yrrng = NULL, stas = NULL, bay_segment = NUL
levs <- segs
}

# get geomean, proportion of sites/bay segments > 400 cfu / 100mL, and prob of exceedence
# get geomean, proportion of sites/bay segments > threshold, and prob of exceedence
# handles lagged calculations
dat <- fibdata %>%
dplyr::filter(station %in% stas) %>%
Expand Down Expand Up @@ -284,7 +284,7 @@ anlz_fibmatrix <- function(fibdata, yrrng = NULL, stas = NULL, bay_segment = NUL
) %>%
dplyr::filter(!is.na(sumgt))

# Put stations into binomial test groups based on significant exceedances of 400cfu criteria
# Put stations into binomial test groups based on significant exceedances of threshold criteria
dat$MWQA <- NA
dat$MWQA[dat$exceed_10_prob >= 0.10] <- 'A'
dat$MWQA[dat$exceed_10_prob < 0.10 & dat$exceed_30_prob >= 0.10] <- 'B'
Expand Down
2 changes: 1 addition & 1 deletion R/globalVariables.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ globalVariables(c("Chlorophyll_aQ", "Latitude", "Longitude", "SampleTime", "Samp
"Fecal_Coliform", "Fecal_ColiformQ", "Total_Coliform", "Total_ColiformQ",
"entero", "ecoli", "fcolif", "totcol", "areasfib", "Var1", "Var2", "colnm",
"indnm", "brk", "cls", "conc", "exced", "gmean", "MWQA", "station_tot",
"sumgt400", "yearfac", "nyrs", "ActivityDepthHeightMeasure.MeasureUnitCode",
"yearfac", "nyrs", "ActivityDepthHeightMeasure.MeasureUnitCode",
"ActivityDepthHeightMeasure.MeasureValue", "chla_target", "chla_val",
"la_target", "la_val", "MonitoringLocationTypeName", "loadest", "out1",
"v", "z", "ActivityLocation.LatitudeMeasure", "ActivityLocation.LongitudeMeasure",
Expand Down

0 comments on commit f0172c7

Please sign in to comment.