View source: R/calc-iphc-ser-area.R
iphc_format_for_EAFM | R Documentation |
Create and save a .csv file in the format requested by Jennifer Bolt:
What would work best for me is a csv file with 3 columns: Year
,
Indicator
, Value
Non-standardized values are best (i.e. not normalised).
The Indicator
column could include:
ArrowtoothFlounder_IPHC_SurveyCatchRate
ArrowtoothFlounder_IPHC_UpperCI
ArrowtoothFlounder_IPHC_LowerCI
Rockfish_IPHC_SurveyCatchRate
...
iphc_format_for_EAFM(
sp_vec,
sp_vec_list,
path = ".",
filename = "herring-HG-predators-IPHC.csv"
)
sp_vec |
A vector of species names. Each one must have a corresponding
list |
sp_vec_list |
list of output, with each element corresponding to each species (and named for that species), and being a tibble of the longest time series. See vignette, since needs to be created outside of a function. |
path |
The folder where the cached results will be saved. |
filename |
filename (including .csv) to save .csv file; also saves .rds of sp_vec_list. |
Also saves sp_vec_list
as an .rds file.
saves a .csv file and returns the resulting tibble. Columns are:
Year
Indicator (e.g. ArrowtoothFlounder_IPHC_SurveyCatchRate, ArrowtoothFlounder_IPHC_UpperCI)
Value
Andrew Edwards
## Not run:
# See vignette.
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.