> (This does imply you knew the number of dimensions was 3.) Yes, at run time.
>It looks as though the Nulls became 0's. So if you wanted to use >do.call(`[` then this succeeds: > do.call(`[`, list(tbl, x, 1:dim(tbl)[2], 1:dim(tbl)[3]) ) ... >As does this using the "empty comma" approach: > eval(parse(text= paste("tbl[ " ,x, " , , ]")) ) I tried the eval course but that struck me as slower. Perhaps not? It's not that I'm set on using '['. I was under the impression that was how the eval expression is eventually parsed. I also thought the empty commas were eventually passed as NULLs. Wasn't aware of the 'str' function. Could come in handy down the road. Thanks. DAV ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.