Description Usage Arguments Value See Also Examples
Expand a dataframe of occurrence by year range so that there is a separate record for each year. Also check for duplicated year / location combinations.
occurrence should be a dataframe with columns named Start_Year, End_Year, Admin, Latitude and Longitude giving the start and end years of the date range, the admin level (0 to 3, or -999 for points) and the latitude and longitude of points or centroids. A SourceID column should also be present, giving a unique identifier for each of the input records. If a column of this name is not present one will be added. A UniqueID column is also added, giving a unique identifier for each record after the temporal standardisation.
GAUL codes for each record are required to check for duplicates. If these are provided as a column named GAUL in occurrence, then this is used, otherwise getGAUL is used to extract the GAUL codes from admin (a RasterBrick or RasterStack object giving the GAUL codes at different admin levels) and add them to occurrence.
tempStand returns a list giving the expanded dataframe and row indices for the duplicated points and polygons.
1 | tempStand(occurrence, admin, verbose = TRUE)
|
occurrence |
A dataframe of occurrence data containing the columns |
admin |
A |
verbose |
Whether to print information to the console. |
A list with three elements:
occurrence |
An expanded dataframe of occurrence data with individual records for each year. The columns |
duplicated_polygons |
A vector giving the row numbers of the output element |
duplicated_points |
A vector giving the row numbers of the output element |
1 | # TO DO
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.