Re: [R] Dimensioning lists.

2021-02-14 Thread Avi Gross via R-help
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

[R] Dimensioning lists.

2021-02-14 Thread Rolf Turner
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