2021 10:35 PM
To: "r-help@R-project.org" "@r-project.org
Subject: [R] Dimensioning lists.
I have a setting in which it would be convenient to treat a list as an
array, i.e. to address its entries via a pair of indices.
A toy example:
xxx <- vector("list",9)
set.seed
I have a setting in which it would be convenient to treat a list
as an array, i.e. to address its entries via a pair of indices.
A toy example:
xxx <- vector("list",9)
set.seed(42)
for(i in 1:9) xxx[[i]] <- list(a=sample(letters,1),b=sample(1:100,1))
I would like to be able to treat "xxx" as a
2 matches
Mail list logo