initializeGBIFEvent | R Documentation |
Initialize a new GBIF Event object
initializeGBIFEvent(
objectData,
idColumnInfo,
nameAutoMap = FALSE,
defDateFormat = "YYYY-MM-DD",
...
)
objectData |
A |
idColumnInfo |
Either a |
nameAutoMap |
A |
defDateFormat |
A |
... |
A named set of paramaeters corresponding to Darwin core terms associated with the GBIFEvent
class type. Each is either a |
A new GBIFEvent
object
DwCTerm
getGBIFEventMembers
## Not run:
## Get a dataset as an Archive and then extract the event core
## Get the dataset using the key:
datasetKey <- "aea17af8-5578-4b04-b5d3-7adf0c5a1e60"
Archive <-getLNportalData(datasetKey = datasetKey)
event<-Archive$getCoreTable()
## Convert the event back to a dataframe
event=event$exportAsDataFrame()
## Then use the dataframe to initialise an object of class GBIF event
GBIFevent<-initializeGBIFEvent(event, idColumnInfo = "id", nameAutoMap = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.