Skip to content
Prev 176054 / 398503 Next

data.frame to array?

David Winsemius wrote:
sure it is.
read the error message:  *recursive* indexing failed.  that's because
ltest[[1]] has only one element while you wanted its second element (and
that element's third element).

    ltest = list(list(2, as.list(1:3)))
    ltest[[1:3]]
    # 3

is just fine.

vQ