View source: R/addMissingCwacCounts.R
addMissingCwacCounts | R Documentation |
Add missing CWAC counts to CWAC site data
addMissingCwacCounts(site_counts, years)
site_counts |
A dataframe obtained from getCwacSiteCounts |
years |
A vector of years the function should complete. This is useful for cases where counts are missing at the beginning or end of the period. We can explicitly state which years should be in the data. |
Note that this function only works for South Africa currently. This is because it assumes that there are only two seasons: summer (labelled "S") and winter (labelled "W"). If any of these seasons have no data for any given year the function will fill it in with an NA.
The same site_counts dataframe provided with additional rows for those Winter or Summer seasons for which no data were collected.
counts <- getCwacSiteCounts("26352535")
counts_w_miss <- addMissingCwacCounts(counts, years = 1993:2020)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.