View source: R/get_inboveg_relation_recording.R
get_inboveg_relation_recording | R Documentation |
This function queries the INBOVEG database for relation information on recordings for one or more surveys based on Parent (classic-chain/bucket) and Child (classic) relationship.
get_inboveg_relation_recording(
connection,
survey_name,
multiple = FALSE,
collect = FALSE
)
connection |
|
survey_name |
A character string or a character vector, depending on multiple parameter, giving the name or names of the survey(s) for which you want to extract recordings information. If missing, all surveys are returned. |
multiple |
If TRUE, survey_name can take a character vector with multiple survey names that must match exactly. If FALSE (the default), survey_name must be a single character string (one survey name) that can include wildcards to allow partial matches |
collect |
If FALSE (the default), a remote |
A dataframe with variables
RecordingId
,
Child_GIVID
(unique RecordingGIVID
),
Child_UserRef
(UserReference
),
ParentId
(RecordingId
),
Parent_GIVID
(unique RecordingGIVID
) and
Parent_UserRef
(UserReference
)
Other inboveg:
get_inboveg_classification()
,
get_inboveg_header()
,
get_inboveg_layer_cover()
,
get_inboveg_layer_qualifier()
,
get_inboveg_ppa()
,
get_inboveg_qualifier()
,
get_inboveg_recording()
,
get_inboveg_survey()
## Not run:
library(inbodb)
con <- connect_inbo_dbase("D0010_00_Cydonia")
# get the Parent-Child-relations from one survey
relations_N2000meetnet_Grasland <- get_inboveg_relation_recording(con,
survey_name = "N2000meetnet_Grasland")
# get all Parent-Child-relations from N2000meetnet surveys (partial matching)
relations_N2000meetnet <-
get_inboveg_relation_recording(con, survey_name = "%N2000meetnet%")
# get Parent-Child-relations from several specific surveys
relations_severalsurveys <-
get_inboveg_relation_recording(con,
survey_name = c("DeBlankaart-1985-Beheer", "N2000meetnet_Grasland"),
multiple = TRUE)
# get all Parent-Child-relations of all relevant surveys
allrelations <- get_inboveg_relation_recording(con)
# Close the connection when done
dbDisconnect(con)
rm(con)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.