Learn R Programming

bdvis (version 0.1.0)

fixstr: fixstr - Fix structure of the data frame to match the key fields to GBIF style data fireld names

Description

fixstr - Fix structure of the data frame to match the key fields to GBIF style data fireld names

Usage

fixstr(indf, Latitude = NA, Longitude = NA, DateCollected = NA,
  datefmt = NA, SciName = NA)

Arguments

indf
input data frame containing biodiversity data set
Latitude
name of Latitude field in original data frame
Longitude
name of Longitude field in original data frame
DateCollected
name of Date Collected field in original data frame
datefmt
format string for the original date field strptime
SciName
name of Scientific Name field in original data frame

Examples

Run this code
inat = fixstr(inat, DateCollected = "Date.collected", datefmt = "%Y-%m-%d %H:%M:%S")

Run the code above in your browser using DataLab