Dear all,
I have a list of arrays :
foo<-list(A = c(1,3), B =c(1, 2), C = c(3, 1))
$A
[1] 1 3
$B
[1] 1 2
$C
[1] 3 1
I want to use all foo$A , foo$B and foo$C in a test :
[1] TRUE
[1] TRUE
Error in foo[[1:3]] : recursive indexing failed at level 2
Is there a regular expression I can use ?
I have a list of arrays :
foo<-list(A = c(1,3), B =c(1, 2), C = c(3, 1))
$A
[1] 1 3
$B
[1] 1 2
$C
[1] 3 1
I want to use all foo$A , foo$B and foo$C in a test :
[1] TRUE
[1] TRUE
Error in foo[[1:3]] : recursive indexing failed at level 2
Is there a regular expression I can use ?