Re: [R] Please help! Matrices and parameter of time

2014-04-01 Thread Jeff Newmiller
This mailing list has a no homework policy (read the Posting Guide, please, 
which also requests that you post in plain text format only). If this is not 
homework then you will have to be a bit more specific about what you know and 
what you don't in order to get useful help. Questions about why you should put 
certain values in particular locations in your array are not about R and are 
off topic here.

If you are having difficulty with R syntax for arrays, I recommend reading the 
Introduction to R document supplied with the software, and experimenting. If 
you are still having difficulty after doing that, then refer to where you get 
lost in that document when asking for more help. 

A word of advice: the least obvious thing about arrays to beginners is that 
they are constructed using one big vector rather than a bunch of little 
vectors, yet it is possible to extract or change little vectors or arrays from 
the larger array using indexing.
---
Jeff NewmillerThe .   .  Go Live...
DCN:Basics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k
--- 
Sent from my phone. Please excuse my brevity.

On April 1, 2014 1:37:14 AM PDT, ANNA SIMEONIDOU  wrote:
>Hi, Well, the solution to my problem maybe is easy, but i have really
>stuck with this.
>I have a process which evolves in three times, so there is the
>parameter of time (t=1,2,3).More particularly i have three 4*4 
>matrices, one for each time. In other words each element has three
>cordinates: time, row and column.
>The problems are these:i don't know how to express these matrices.Also
>i don't know how can i extract each element, for example, if i want the
>element from the matrix corresponding to the 3d time, the  2nd row, the
>3d column, how will i extract this? 
>I would appreciate any help and idea!Thank you!Anna S.
> 
>   [[alternative HTML version deleted]]
>
>__
>R-help@r-project.org mailing list
>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.

__
R-help@r-project.org mailing list
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.


Re: [R] Please help! Matrices and parameter of time

2014-04-01 Thread David Carlson
Use an 3-dimensional array.

?array

And any basic introduction to R.

-
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352

-Original Message-
From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org] On Behalf Of ANNA
SIMEONIDOU
Sent: Tuesday, April 1, 2014 3:37 AM
To: r-help@r-project.org
Subject: [R] Please help! Matrices and parameter of time

Hi, Well, the solution to my problem maybe is easy, but i have
really stuck with this.
I have a process which evolves in three times, so there is the
parameter of time (t=1,2,3).More particularly i have three 4*4
matrices, one for each time. In other words each element has
three cordinates: time, row and column.
The problems are these:i don't know how to express these
matrices.Also i don't know how can i extract each element, for
example, if i want the element from the matrix corresponding to
the 3d time, the  2nd row, the 3d column, how will i extract
this? 
I would appreciate any help and idea!Thank you!Anna S.
  
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
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.

__
R-help@r-project.org mailing list
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.


[R] Please help! Matrices and parameter of time

2014-04-01 Thread ANNA SIMEONIDOU
Hi, Well, the solution to my problem maybe is easy, but i have really stuck 
with this.
I have a process which evolves in three times, so there is the parameter of 
time (t=1,2,3).More particularly i have three 4*4  matrices, one for each time. 
In other words each element has three cordinates: time, row and column.
The problems are these:i don't know how to express these matrices.Also i don't 
know how can i extract each element, for example, if i want the element from 
the matrix corresponding to the 3d time, the  2nd row, the 3d column, how will 
i extract this? 
I would appreciate any help and idea!Thank you!Anna S.
  
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
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.