Skip to content
Prev 106129 / 398506 Next

loop is going to take 26 hours - needs to be quicker!

Hi

if I understand correctly, you have one column you need to reformat 
into array. Array is basically a vector with dim attribute. Therefore 
if your data were properly sorted you could use just

gpcc.array <- array(gpccnata2[,5], c(144,72,46))

to reformat column 5 of your data frame. But you shall be 100% sure 
you really want an array and not any other data form.

HTH
Petr
On 14 Dec 2006 at 12:56, Jenny Barnes wrote:
Date sent:      	Thu, 14 Dec 2006 12:56:16 +0000 (GMT)
From:           	Jenny Barnes <jmb at mssl.ucl.ac.uk>
To:             	r-help at stat.math.ethz.ch
Subject:        	[R] loop is going to take 26 hours - needs to be quicker!
Send reply to:  	Jenny Barnes <jmb at mssl.ucl.ac.uk>
	<mailto:r-help-request at stat.math.ethz.ch?subject=unsubscribe>
	<mailto:r-help-request at stat.math.ethz.ch?subject=subscribe>
Petr Pikal
petr.pikal at precheza.cz