str_map_occ: Structure and map occurence table

Description Usage Arguments Value Examples

View source: R/structure_and_map_occurrence.R

Description

Function takes inn a datatable where the columns correspond exactly to the database columns and returns an occurrence dataframe ready to be upserted.

Usage

1

Arguments

data

Data to be structured.

conn

DB connection with access permission (see natron_connect()).

location_table

location table (see location_table()).

Value

Occurrence data (dataframe) that is ready to be upserted to Natron.

Examples

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

## End(Not run)

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