Reading farm parameter from csv (semi-colon) file to the correct format.

load_parameter(
  parameter,
  path,
  m = FALSE,
  generic = getOption("ava")[["generic"]],
  path_input = getOption("ava")[["path_input"]],
  row.names = 1,
  checking = getOption("ava")[["checking"]],
  ...
)

Arguments

parameter

character, name of the file of parameter to be loaded.

path

character, subdirectory where to find parameters.

m

logical, should the result be returned as a matrix.

generic

character, default name for the file of parameters to be loaded. Default to getOption("ava")[["generic"]].

path_input

character, directory where to find path. Default to getOption("ava")[["path_input"]].

row.names

integer, columns where to find row.names. Default to 1.

checking

logical, should the parameters be checked. Default to getOption("ava")[["checking"]].

...

other parameters that will be passed to utils::read.csv2().

Value

Either a data.frame or a matrix of parameters.