[R] Multidimensional array
veni arakelian
veniarakelian at yahoo.com
Mon Dec 28 22:10:09 CET 2015
Dear David
The first three arrays are of the formval(:,:,1) =
1 1 1 1 1 1 1 1 1
val(:,:,2) =
1 0 0 0 1 1 0 1 1
val(:,:,3) =
1 0 0 0 1 1 0 1 1
So I plan to import them in R as a single time series (i.e., 1 1 1 1 1 1 1 1 1 1 0 0 0 1 1 0 1 1 1 0 0 0 1 1 0 1 1) and 'reshape' it in the form val[ , , t].
If there is another way more efficient, please let me know.
Kind regards,Veni
From: David Winsemius <dwinsemius at comcast.net>
To: veni arakelian <veniarakelian at yahoo.com>
Cc: "r-help at r-project.org" <r-help at r-project.org>
Sent: Monday, December 28, 2015 9:24 PM
Subject: Re: [R] Multidimensional array
> On Dec 27, 2015, at 11:49 PM, veni arakelian via R-help <r-help at r-project.org> wrote:
>
>
>
> Hi All.
>
> I'm very new in R. I'd like to import data of the form MxMxT, i.e., MxM array in T distinct points.
> Any ideas how to do that?
It will depend on the form in which this data is represented as a file object. Can you show the appearance of the first two or three MxM items as they would be viewed in a text editor. And PLEASE post in plain text.
> Regards,
> Veni
>
>
> [[alternative HTML version deleted]]
Postin in HTML is generally a sign that you have not read the posting-guide page.
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
David Winsemius
Alameda, CA, USA
[[alternative HTML version deleted]]
More information about the R-help
mailing list