Learn R Programming

sits (version 0.10.0)

.sits_labels_list: Sits labels processing function

Description

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

Usage

.sits_labels_list(data, label_lst, fun_label = function(lb) lb)

Arguments

data

A sits tibble (or a pred_ref tibble)

label_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 is used as list.lst value for the respective label.

Value

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