age-
From: Dimitris Rizopoulos [mailto:d.rizopou...@erasmusmc.nl]
Sent: 09 November 2010 13:22
To: Santosh Srinivas
Cc: r-help@r-project.org
Subject: Re: [R] Row-wise recurive function call
try this:
apply(data.matrix(a), 1, playFn)
I hope it helps.
Best,
Dimitris
On 11/9/2010 8:32 AM, Sant
el argument with foreach in
background
>
>
> -Original Message-
> From: Dimitris Rizopoulos [mailto:d.rizopou...@erasmusmc.nl]
> Sent: 09 November 2010 13:22
> To: Santosh Srinivas
> Cc: r-help@r-project.org
> Subject: Re: [R] Row-wise recurive function call
>
&
Thanks this works. Only, I need to reference in the formula using indexes.
-Original Message-
From: Dimitris Rizopoulos [mailto:d.rizopou...@erasmusmc.nl]
Sent: 09 November 2010 13:22
To: Santosh Srinivas
Cc: r-help@r-project.org
Subject: Re: [R] Row-wise recurive function call
try
try this:
apply(data.matrix(a), 1, playFn)
I hope it helps.
Best,
Dimitris
On 11/9/2010 8:32 AM, Santosh Srinivas wrote:
Dear Group,
I have a following dataset:
a
A B C D
1 22 3 31 40
2 26 31 36 32
3 3 7 49 16
4 24 40 27 26
5 20 45 47 0
6 34 43 11 18
7 48 48 24 2
8
Dear Group,
I have a following dataset:
> a
A B C D
1 22 3 31 40
2 26 31 36 32
3 3 7 49 16
4 24 40 27 26
5 20 45 47 0
6 34 43 11 18
7 48 48 24 2
8 3 16 39 48
9 20 49 7 21
10 17 36 47 10
> dput(a)
structure(list(A = c(22L, 26L, 3L, 24L, 20L, 34L, 48L, 3L, 20L,
17L), B = c(3
5 matches
Mail list logo