Skip to content
Prev 27177 / 29559 Next

[FORGED] Modifying the length of a matrix variable

Yes, I reproduced the example above and it works just fine (and is what I want!!), but I cannot see why it does not work with my data, as it is a 3-dimensional array (latitude, longitude and time).?
This is what comes from print(Model4):
3 variables (excluding dimension variables):
        double onedaymax[lon,lat,time]   (Contiguous storage)  
            units: mm/day
        double fivedaymax[lon,lat,time]   (Contiguous storage)  
            units: mm/day
        short Year[time]   (Contiguous storage)  

     3 dimensions:
        time  Size:95
        lat  Size:64
            units: degree North
        lon  Size:128
            units: degree East
I reviewed it over and over again, but I cannot see why this would not work?
Thanks,?


-----Original Message-----
From: Rolf Turner <r.turner at auckland.ac.nz>
To: rain1290 <rain1290 at aim.com>
Cc: r-sig-geo <r-sig-geo at r-project.org>
Sent: Sat, Mar 30, 2019 6:49 pm
Subject: Re: [FORGED] [R-sig-Geo] Modifying the length of a matrix variable
On 31/03/19 11:14 AM, rain1290 at aim.com wrote:

            
Well then you're doing something wrong, or there is something that you 
haven't told us.

E.g.:
Perhaps Model.4 has some structure other than that of an array. 
(Originally you said it was a matrix.)

You really need to get your terminology and ideas *clear* in order to 
have any hope of receiving useful advice.

I have no idea what you are on about in respect of "the number of 
cells".? My mind-reading machine is in the repair shop.? I strongly 
suspect that your thoughts are confused.

cheers,

Rolf