Learn R Programming

sits (version 1.12.0)

.sits_labels_list: Sits labels processing function

Description

Completes list.lst list as a named list (names are unique labels from data.tb) according to a given function that receives each label as an argument.

Usage

.sits_labels_list(data.tb, list.lst = list(), fun_label = function(lb)
  lb)

Arguments

data.tb

A sits tibble.

list.lst

Any named list whose names are unique labels from data input. Non-informed labels will be completed according to fun_label function.

fun_label

A function that will be executed for each label non listed in list.lst parameter. The result of the function is used as list.lst value for the respective label.

Value

A list whose values non informed in list.lst is filled by fun_label for each unique label in data.tb.