# NOT RUN {
Get all open outbreaks for Durham.
outbreaks <- getOutbreaks(
confirmedOnly = FALSE,
healthUnit = 'Durham Region Health Department'
)
Specify the data to return. This can be field names or labels
N.B. Names are case sensitive!
outbreaks <- getOutbreaks(
columns = c("Id", "Outbreak Name", "Outbreak Number")
)
Limit the data to a specific time period.
outbreaks <- getOutbreaks(
from = "2021-01-01",
to = "2020-01-17"
)
# }
Run the code above in your browser using DataLab