Learn R Programming

bdvis (version 0.2.37)

getcellid: Assign GBIF style degree cell ids and generate custom grid cell ids

Description

Calculate and assign a GBIF-style degree cell id and centi-degree (0.1 degrees, dividing a 1 degree cell into 100 centi-degree cells) cell id to each record. This function also creates a custom grid scale if parameter gridscale is supplied. This is a necessary previous step for some functions like mapgrid

Usage

getcellid(indf, gridscale = 0)

Value

data frame with two columns for cell_id added

Arguments

indf

input data frame containing biodiversity data set

gridscale

generate custom grid scale column for mapping. Default is 0.

See Also

Other Data preparation functions: bdsummary(), format_bdvis(), gettaxo()

Examples

Run this code
if (FALSE) {
getcellid(inat)
}

Run the code above in your browser using DataLab