powered by
Use an R expression to identify values for replacement.
The RR expression given in filter is used to identify elements in ws_monitor$data that should be replaced. Typical usage would include
filter
ws_monitor$data
replacing negative values with 0
replacing unreasonably high values with NA
NA
Expressions should use data for the left hand side of the comparison.
data
monitor_replaceData(ws_monitor, filter, value)
ws_monitor object
an RR expression used to identify values for replacement
replacement value
# NOT RUN { library(PWFSLSmoke) wa <- monitor_subset(Northwest_Megafires, stateCodes = 'WA') wa_zero <- monitor_replaceData(wa, data < 0, 0) # }
Run the code above in your browser using DataLab