Function that creates a data object from a list

make_data_obj(
  data_list,
  name,
  units,
  data_object_type,
  sex,
  areas_of_operation,
  observation_error
)

Arguments

data_list

the data values, a list which can contain multiple data entries

name

a string denoting he name of the data source

units

a string denoting the units of the data source

data_object_type

the type of data (i.e. age composition, index)

sex

the sex the data pertains to

areas_of_operation

the areas this data source is collected in

observation_error

the observation error associated with these data, a list which can contain multiple entries, each one is assumed to match an entry of data_list

Value

a list containing the data arguments