Change structure of the data frame according to the package's needs

Description

This function is slated to deprecate in next version. Please use function format_bdvis instead.

Usage

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

Arguments

indf

input data frame containing biodiversity data set

Latitude

name of the Latitude field in original data frame

Longitude

name of the Longitude field in original data frame

DateCollected

name of the Date Collected field in original data frame

datefmt

format string for the original date field strptime

SciName

name of the Scientific Name field in original data frame

Details

Modify the name of certain fields in the provided data.frame to meet the requirements of the package, to make sure functions are executed properly.

See Also

Other Data preparation functions: bdsummary, getcellid, gettaxo

Examples

1
2
3
4
## Not run: 
inat = fixstr(inat, DateCollected = "Date.collected", datefmt = "%Y-%m-%d %H:%M:%S")

## End(Not run)