Skip to content
Prev 324209 / 398503 Next

avoiding eval parse with indexing

? the code returns Error:
?do.call("[", c(list(z),1,1,ix))
#Error in 1:24[1, 1, 1:3, 1:4] : incorrect number of dimensions
May be something is missing.
A.K.



----- Original Message -----
From: Bert Gunter <gunter.berton at gene.com>
To: Martin Ivanov <tramni at abv.bg>
Cc: r-help at r-project.org
Sent: Sunday, May 26, 2013 10:43 AM
Subject: Re: [R] avoiding eval parse with indexing

Martin:

Well, assuming I understand, one approach would be to first get the
dim attribute of the array and then create the appropriate call using
that:
[1]? 1? 7 13 19

Is that what you want?

-- Bert
On Sun, May 26, 2013 at 6:56 AM, Martin Ivanov <tramni at abv.bg> wrote: