read in specs dataframe

read_specs(
  path,
  year,
  range = "A5:L91",
  col_names = c("species", "area", "0ofl", "0abc", "0tac", "0catch", "1ofl", "1abc",
    "1tac", "1catch", "2ofl", "2abc"),
  col_types = c("text", "text", rep("numeric", 10))
)

Arguments

path

location of file

year

current year

range

the range of cells to include from the spreadsheet default:A5:L91

col_names

specify names of all columns included

col_types

specify column types of all columns included

Examples

if (FALSE) {
read_specs('data/goa_specs2022.xlxs', col_names = c("species", "area", "0ofl", "0abc", "0tac", "0catch", "1ofl", "1abc", "1tac", "1catch", "2ofl", "2abc"), col_types = c("text", "text", rep("numeric", 10)))
}