find_parent_layer: takes and returns a parent list recursively until as much as...

View source: R/find_layer.R

find_parent_layerR Documentation

takes and returns a parent list recursively until as much as possible is solved

Description

takes and returns a parent list recursively until as much as possible is solved

Usage

find_parent_layer(
  parent_list,
  uidlist,
  id_type,
  layer_categories,
  max_depth = 20
)

Arguments

parent_list

a list with solved and unsolved resources

uidlist

A data.frame as returned by get_field_index() or get_uid_list().

id_type

One of "identifier" or "UID" - Should the function use identifiers or UUIDs to find the layer?

layer_categories

A vector of categories that are classified as Layers. (Encompasses SurveyUnit.) See or change the default: getOption("idaifield_categories")$layers

max_depth

numeric. Maximum number of recursive iterations / maximum depth a resource may be nested below its layer.

Value

a list with solved and unsolved resources

See Also

  • find_layer().


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