Select/Filter an idaifield_resources- or idaifield_docs-list
Source: R/select_idaifield.R
idf_select_by.RdSubset or filter the list of the docs or resources by the
given parameters. You may want to consider querying the database
directly using idf_query(), idf_index_query(), or idf_json_query().
Arguments
- idaifield_docs
An
idaifield_resources- oridaifield_docs-list as returned byget_idaifield_docs()oridf_query(),idf_index_query(), andidf_json_query().- by
Any name of a field that might by present in the resource lists, e.g. category, identifier, processor etc.
- value
character. Should be the internal name of the value that will be selected for (e.g. "Layer", "Pottery"), can also be vector of multiple values.
Value
A list of class idaifield_resources containing the resources
which contain the specified values.
Examples
if (FALSE) { # \dontrun{
connection <- connect_idaifield(serverip = "127.0.0.1",
user = "R", pwd = "hallo", project = "rtest")
idaifield_docs <- get_idaifield_docs(connection = connection)
idaifield_layers <- idf_select_by(idaifield_docs,
by = "category",
value = "Layer")
idaifield_anna <- idf_select_by(idaifield_docs,
by = "processor",
value = "Anna Allgemeinperson")
} # }