View source: R/check-index-changed.R
check_index_changed | R Documentation |
If index has changed from the saved one then save the new version. Only used for updating data (see files in 'data-raw').
check_index_changed(old, new, alpi = FALSE)
old |
original object (of class 'pacea_index', 'pacea_recruitment', 'pacea_biomass', or 'pacea_recruitment_herring') saved in pacea |
new |
newly downloaded and wrangled object (must also be one of the above classes) |
alpi |
logical if checking the 'alpi' object, as comparing axis name does not work because it is convoluted. See 'data-raw/coastwide-indices/alpi-update.R' for use. |
logical if the object has changed (and we would then want to resave it)
Andrew Edwards
## Not run:
check_index_changed(oni, oni[-10, ]))
# see data-raw/groundfish/data.R
# see data-raw/coastwide-indices/coastwide-indices.R
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.