View source: R/select_idaifield.R
select_by | R Documentation |
idaifield_resources
- or
idaifield_docs
-listThis function has been deprecated in favour
of idf_select_by()
.
select_by(idaifield_docs, by = c("category", "isRecordedIn"), value = NULL)
idaifield_docs |
An |
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. |
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()
.
A list of class idaifield_resources
containing the resources
which contain the specified values.
idf_select_by()
## Not run:
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")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.