Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/DataQC_Main_DwCgeneral.R
performs a general QC on a darwinCore file. Desired output is either and event (core) file, occurrence (core or extension) or extended Measurement or Fact (eMoF; extension) file. Not an Ecological dataset Language (EML) file.
1 | dataQC.DwC_general(dataset = NA, DwC.type = "event", ask.input = TRUE, complete.data=TRUE)
|
dataset |
data.frame. A dataframe with the data, structured with DarwinCore terms |
DwC.type |
character. The type of DarwinCore of the output, either event or occurrence. If event, the output will have an event core with possible occurrence and eMoF extensions. If occurrence, the output will have an occurrence core with possibly an eMoF extension. Default event, if the parameter Event is not NA, out.type will be fixed as event. |
ask.input |
logical. If TRUE, console input will be requested to the user when a problem occurs. Default TRUE |
complete.data |
logical. If TRUE, data that has not been provided, but can be completed automatically will be added to the DarwinCore data.frame. For instance, footprintWKT can be generated from the coordinates, or higher taxonomic level names (like kingdom, phylum,...) can looked up with the species name. Defaut TRUE. |
DarwinCore is the biodiversity data standard developed by TDWG, and is used by the Global Biodiversity Information Facility (GBIF). This function performs a basic and user-supervised quality control. This includes cheking all variables terms adhere to the DarwinCore vocabulary, listing other variables in an eMoF file or in the dynamicProperties field, and checking for obvious errors in the content of the data (typos, different NA values,...)
a dataframe that is formatted as either: an event or occurrence
Maxime Sweetlove CC-0 2020
Other standardization functions:
coordinate.to.decimal()
,
dataQC.DwC()
,
dataQC.MIxS()
1 2 3 4 5 6 7 8 9 | ## Not run:
test_event <- data.frame(eventID=c("sample1", "sample2"),
eventDate=c("2021-09-27", "2021-09-28"),
decimalLatitude=c("54.7", "33"),
decimalLongitude=c("88.9", "-48.4"),
row.names=c("sample1", "sample2"))
dataQC.DwC_general(dataset=test_event, DwC.type = "event", complete.data=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.