Reads in csv file with Year in first column and as many survey indices as desired, standardizes series if desired, computes mean of all or user selected surveys, outputs csv file with Year and Mean Index.
1 2 3 4 5 6 7 8 9 10 |
data.dir |
directory with csv file |
data.file.name |
name of csv file (without the .csv extension) |
od |
directory for output (default=working directory) |
standardize |
true/false flag to divide by mean of time series (default=FALSE) |
usesurvey |
vector of true/false to select surveys to average (default=NA which means use all) |
narmavgflag |
true/false flag for na.rm setting in average across multiple surveys (default=FALSE) |
saveplots |
true/false flag to save output to od (default=FALSE) |
nameplots |
added to start of saved files (default=""), spaces not recommended |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.