select_by: Deprecated function: Select/filter an 'idaifield_resources'-...

View source: R/select_idaifield.R

select_byR Documentation

Deprecated function: Select/filter an idaifield_resources- or idaifield_docs-list

Description

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- or idaifield_docs-list as returned by get_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.

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().

Value

A list of class idaifield_resources containing the resources which contain the specified values.

See Also

idf_select_by()

Examples

## 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)

lsteinmann/idaifieldR documentation built on April 3, 2025, 2:06 p.m.