powered by
splitbyname
splitbyname(x)
NA
A name without brackets is equivalent to a name with '[1]'.
Dimension will not be set in case of vectors.
Note. Will not work for rv objects if rvcompatibility()==1.
rvcompatibility()==1
x <- structure(rvnorm(2), names=c("x[1,1]", "x[3,3]")) splitbyname(x) # yields a list containing a 3*3 random matrix
Run the code above in your browser using DataLab