str_map_events: Structure and map event table

Description Usage Arguments Details Value Examples

View source: R/structure_and_map_event.R

Description

This function takes your event-based dataset and returns an event dataframe ready to be upserted.

Usage

1

Arguments

data

Dataframe to be structured. The column names need to match the NaTron terms (DwC).

conn

NaTron connection object with access permission (see ?natron_connect).

location_table

location table for your data (see ?location_table()).

Details

data needs to contain a column called dateQualifierstating the resolution of the eventDate. Options are "Only year", "Only month-year", "Complete date", "0-No date", or "Doubtful day/month". Discrepancies returns an error.

Value

Dataframe: event table, mapped to the location table and ready to be upserted to Natron.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
data("setesdal")
myConnection <- natron_connect("YOUR-USERNAME")
myLocationTable(data = setesdal, conn = myConnection)
#map_location(myLocationTable)
myEvents <- str_map_events(data = setesdal,
                           conn = myConnection,
                           location_table = myLocationTable)

## End(Not run)

NTNU-VM/natronbatchupload documentation built on Oct. 12, 2019, 5:49 a.m.