I'm looking for a efficient way for the following transformation:
Example input:
ob <- list(a = 2, b = 3)
Expected output:
key value
1 a 2
2 b 3
Current (verbose) solution:
data.frame(key = names(ob), value = unlist(ob, use.names = FALSE))