search for: fjsanala

Displaying 3 results from an estimated 3 matches for "fjsanala".

2010 Oct 21
4
Efficient nested loops
Dear R community, I am working with huge arrays, so I spend a lot of time computing. This is my code: for (x in 1:dim(variable)[1]){ for (y in 1:dim(variable)[2]){ for (z in 1:dim(variable)[3]){ result <- max(variable[x,y,z,]) } } } Is there a more efficient procedure to do this task? Thanks in advance! [[alternative HTML version deleted]]
2008 Jun 23
2
I need help with eofs
Hello, I'm a beginner in R. I'm learning to use this fantastic program, but I have some problems in how to use it. First of all, I have a txt file witch I am able to load to the program. I'm very interested in PCA, and I have a lot of packages, but I haven't got the results that I want. I would like to get the EOFS and to export it in a txt file. I would be pleased if you could
2008 Jul 01
3
reshape matrices
Hello everyone, I need reshape an array. For example, if we have next array: > a <- c(1,2,3,4,5,6,7,8,9,10,11,12) > dim(a) <- c(2,2,3) > a , , 1 [,1] [,2] [1,] 1 3 [2,] 2 4 , , 2 [,1] [,2] [1,] 5 7 [2,] 6 8 , , 3 [,1] [,2] [1,] 9 11 [2,] 10 12 I need to get next matrices: 1 2 3 4 5 6 7 8 9 10 11 12 1 3 2 4 5