How to create a vector of lists in R?
- by Martin
Hi,
I have a list (tmpList), which looks like this:
$op
[1] "empty"
$termset
$termset$field
[1] "entry"
$termset[[2]]
$termset[[2]]$explode
[1] "Y"
This is a list with a list inside.
If I add this list to a vector
theOneVector = c(theOneVector, tmpList)
Now the resulting vector is of the length 2, because the first entry ("op") of the list…