Skip to contents

Initialize a new DwCGeneric object

Usage

initializeDwCGeneric(
  classTermInfo,
  associatedTerms,
  objectData,
  idColumnInfo,
  nameAutoMap = FALSE,
  ...
)

Arguments

classTermInfo

A DwCTerm object containing the term information for the class

associatedTerms

A list of DwCTerm objects that contain all the terms associated with the class

objectData

A data.frame containing the data to import into the object

idColumnInfo

Either a character scalar containing the column name of objectData or an integer scalar giving the index of the column of objectData that corresponds to the ID variable. Alternatively, this parameter may be the qualified name of the Darwin core term for which the appropriately mapped column will be used as the ID variable

nameAutoMap

A logical scalar that if TRUE maps the columns of objectData to their respective Darwin core terms based on the column names

...

A named set of paramaeters corresponding to Darwin core terms associated with the DwCGeneric class type. Each is either a character scalar containing the column name of objectData or an integer scalar giving the index of the column of objectData that corresponds to the term.

Value

A new DwCGeneric object

See also

DwCTerm