A function to read in Data object from an Excel spreadsheet with tabs named following specific convention.
Data_xl(fname, stkname, fpath = "", saveCSV = FALSE)
Name of the Excel spreadsheet file. Must include file extension.
Name of the Stock.
Full file path, if file is not in current working directory
Do you also want to the Data parameters to a CSV file?
A object of class Data
The Excel spreadsheet must have tabs named with the following convention.
For example if stkname
is 'myFish', the Data parameters are in a tab
named 'myFishData'.
if (FALSE) {
OM <- OM_xl(fname='OMTables.xlsx', stkname='myFish')
}