Skip to content
Prev 27183 / 29559 Next

[FORGED] Modifying the length of a matrix variable

SUCCESS! Thank you so, so much, Stephen! Indeed, that worked out well, and dim(subset) shows:
64 ? 128 ?? 90
I am very, very grateful for this! Thanks to the others, too, for their assistance with this!

-----Original Message-----
From: Stephen Stewart <stephen.stewart85 at gmail.com>
To: Rolf Turner <r.turner at auckland.ac.nz>
Cc: rain1290 <rain1290 at aim.com>; R-sig-geo Mailing List <r-sig-geo at r-project.org>
Sent: Sat, Mar 30, 2019 8:16 pm
Subject: Re: [R-sig-Geo] [FORGED] Modifying the length of a matrix variable

The last few messages provided important information which was previously absent. Try:

subset = Model4[[1:90]] 

This will subset the brick to layers 1 through 90.

I would also suggest some further reading around the raster package and NetCDF files (e.g. the ncdf4 package) would be useful to you.
On Sun, 31 Mar 2019 at 11:06, Rolf Turner <r.turner at auckland.ac.nz> wrote:

        
On 31/03/19 12:56 PM, rain1290 at aim.com wrote:

            
I know nothing about rasters, the brick() function, or the raster 
package, so include me out at this stage.

Others on the list may be able to help you.? Particular if you can force 
yourself to ask a *focussed* question.

cheers,

Rolf