View source: R/check_assertions.R
| check_assertions | R Documentation | 
This provides a data.frame detailing the assertions that are found in a dataset returned from occurrences.
check_assertions(x)
x | 
 list: an object returned from   | 
A dataframe of assertions column names, descriptions and categories/error codes. If no assertions are in the dataset, NULL is returned.
https://api.biodiversitydata.se/, http://records.biodiversitydata.se/ws/assertions/codes
#download species data with all possible assertions
## Not run: 
 x <- occurrences(taxon="golden plover",
                  download_reason_id=10,
                  qa=sbdi_fields("assertions")$name)
 
 asserts <- check_assertions(x) #data.frame of assertions, their description and column names
 asserts$description # List out descriptions of all (current) assertions
 tmp <- x$data[,names(x$data) %in% asserts$name] ## assertion columns from data
 which(colSums(tmp)>0) ## discard those not seen in the data
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.