btm_var: Recursive function to get the last name in a list

View source: R/utils.R

btm_varR Documentation

Recursive function to get the last name in a list

Description

Recursive function to get the last name in a list

Usage

btm_var(x, name = NULL)

Arguments

x

a list

name

name of the top element of the list

Value

The name of the deepest nested list element

Examples

btm_var(list(X = list(Y = list(K = 1))))


causaloptim documentation built on Oct. 17, 2024, 9:08 a.m.