Data_xl: Read in Data object from Excel spreadsheet

Description Usage Arguments Details Value Author(s) Examples

View source: R/OM_init_doc.R

Description

A function to read in Data object from an Excel spreadsheet with tabs named following specific convention.

Usage

1
Data_xl(fname, stkname, fpath = "", saveCSV = FALSE)

Arguments

fname

Name of the Excel spreadsheet file. Must include file extension.

stkname

Name of the Stock.

fpath

Full file path, if file is not in current working directory

saveCSV

Do you also want to the Data parameters to a CSV file?

Details

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'.

Value

A object of class Data

Author(s)

A. Hordyk

Examples

1
2
3
4
## Not run: 
OM <- OM_xl(fname='OMTables.xlsx', stkname='myFish')

## End(Not run)

MSEtool documentation built on March 10, 2021, 1:08 a.m.