I have a named list whose each element is a character vector. I want to write this list into a single dataframe where I have two columns, one with the name of the character vect
I'm wondering if stack provides the functions you need (using the example of Henrik)
stack
ll <- list(x1 = c("a", "b", "c"), x2 = c("d", "e")) stack(ll) #------- values ind 1 a x1 2 b x1 3 c x1 4 d x2 5 e x2