Re: [R] Dimnames of array inside loop

2010-06-23 Thread David Winsemius
On Jun 23, 2010, at 11:17 AM, M.Ribeiro wrote: any clue?? hello R-helpers, I have an array acuracia <- array(NA, dim = c(1, 1, A, B, C)) which is first defined and in the example above with dimensions 1x1xAxBxC. My array is then filled using 3 loops (I am not well familiar yet with lapp

Re: [R] Dimnames of array inside loop

2010-06-23 Thread M.Ribeiro
any clue?? hello R-helpers, I have an array acuracia <- array(NA, dim = c(1, 1, A, B, C)) which is first defined and in the example above with dimensions 1x1xAxBxC. My array is then filled using 3 loops (I am not well familiar yet with lapply or sapply functions so I am still a loop-user): fo

Re: [R] Dimnames of array inside loop

2010-03-18 Thread Márcio Resende
I read the post http://n4.nabble.com/Error-setting-rowname-if-rowname-currently-NULL-td794579.html#a794579 where it says that the problem is that dimnames(acuracia) is Null ->equivalent to rownames(fred) is NULL (in the post) Then I tried to define all the dimnames first as random names to be the

[R] Dimnames of array inside loop

2010-03-15 Thread Márcio Resende
hello R-helpers, I have an array acuracia <- array(NA, dim = c(1, 1, A, B, C)) which is first defined and in the example above with dimensions 1x1xAxBxC. My array is then filled using 3 loops (I am not well familiar yet with lapply or sapply functions so I am still a loop-user): for (i in 1:A)