D0156_00_Taxonlijsten
R/get_taxonlijsten_lists.R
get_taxonlijsten_lists.Rd
This function queries D0156_00_Taxonlijsten
and gives an
overview of all the taxon lists and list versions currently available in the
database. Only the latest version is shown unless specified otherwise
get_taxonlijsten_lists(
connection,
list = "%",
version = c("latest", "old", "all"),
collect = FALSE
)
dbconnection with the database D0156_00_Taxonlijsten
on the inbo-sql07-prd server
name of the taxonlist that you want to retrieve. Wildcards % are allowed. Case insensitive.
A choice ('latest', 'old', 'all'). If 'latest' (the default) only the most recent version is returned. If 'old' all but the most recent version is returned. If 'all' all versions are returned.
If FALSE (the default), a remote tbl object is returned. This is like a reference to the result of the query but the full result of the query is not brought into memory. If TRUE the full result of the query is collected (fetched) from the database and brought into memory of the working environment.
A remote tbl object (collect = FALSE) or a tibble dataframe (collect = TRUE) with variables TaxonlijstType, TaxonlijstCode, Taxonlijst, Publicatiejaar, Version, ReferentieURL, Criteria, Validering, Vaststelling.
Other taxonlijsten:
get_taxonlijsten_features()
,
get_taxonlijsten_items()
if (FALSE) { # \dontrun{
library(inbodb)
con <- connect_inbo_dbase("D0156_00_Taxonlijsten")
# get the most recent version of the 'Rode lijst van de Dagvlinders'
get_taxonlijsten_lists(con, version = 'latest', list =
'%rode%dagvlinders%', collect = FALSE)
# get all recent red lists
get_taxonlijsten_lists(con, list = '%rode lijst%')
# get all taxonlist versions in the database
get_taxonlijsten_lists(con, version = 'all', collect = TRUE)
# use function with default values (only most recent versions)
get_taxonlijsten_lists(con)
# status of red lists
rl <- get_taxonlijsten_lists(con, list = '%rode lijst%')
select(rl,"Taxonlijst", "PublicatieJaar", "Criteria", "Validering",
"Vaststelling")
# Close the connection when done
dbDisconnect(con)
rm(con, rl)
} # }