Deprecated function: Select/filter an idaifield_resources
- or
idaifield_docs
-list
Source: R/select_idaifield.R
select_by.Rd
This function has been deprecated in favour
of idf_select_by()
.
Usage
select_by(idaifield_docs, by = c("category", "isRecordedIn"), value = NULL)
Arguments
- idaifield_docs
An
idaifield_resources
- oridaifield_docs
-list as returned byget_idaifield_docs()
etc.- 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.
Details
Subset 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()
and idf_json_query()
.
Examples
if (FALSE) {
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")
}