[R-sig-Geo] [FORGED] Modifying the length of a matrix variable
Rolf Turner
r@turner @end|ng |rom @uck|@nd@@c@nz
Sat Mar 30 22:57:39 CET 2019
On 31/03/19 10:22 AM, rain1290 using aim.com wrote:
> Hi Rolf,
>
> My apologies - I meant "layers" as opposed to "length". The goal is to
> reduce the number of layers to 90 (from 95).
>
> dim (Model4) yields:
>
> 64 128 95
>
>
> You can see the 95 there. That is what I would like to reduce to 90, or
> isolate layer 1 to layer 90.
Please keep the list in the set of recipients. I am not your private
consultant, and furthermore others on the list may be able to provide
better advice than I. I have CC-ed this message to the list.
To keep only "layers" 1 through 90 you could do:
Model4.chopped <- Model4[,,1:90]
As I said before, it really is time that you learned something about R
(e.g. by studying a tutorial).
cheers,
Rolf
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
More information about the R-sig-Geo
mailing list