powered by
Recursive function to get the last name in a list
btm_var(x, name = NULL)
The name of the deepest nested list element
a list
name of the top element of the list
btm_var(list(X = list(Y = list(K = 1))))
Run the code above in your browser using DataLab