uot;,"c": 1 1 1 1 1 1
$ z: Factor w/ 3 levels "x","y","z": 1 1 2 2 3 3
--
David
Hope I could be able to make my intentions clearer.
Any idea how I can achieve that?
Thanks,
-----Original Message-
From: David Winsemius [mailto:dwinsem...@comcast.net]
": 1 1 2 2 3 3
--
David
Hope I could be able to make my intentions clearer.
Any idea how I can achieve that?
Thanks,
-----Original Message-
From: David Winsemius [mailto:dwinsem...@comcast.net]
Sent: 01 February 2011 00:13
To: Bogaso Christofer
Cc: r-help@r-project.org
Subject: Re: [R
;. Similarly other two.
Hope I could be able to make my intentions clearer.
Any idea how I can achieve that?
Thanks,
-Original Message-
From: David Winsemius [mailto:dwinsem...@comcast.net]
Sent: 01 February 2011 00:13
To: Bogaso Christofer
Cc: r-help@r-project.org
Subject: Re: [R] From data frame to
s,
-Original Message-
From: David Winsemius [mailto:dwinsem...@comcast.net]
Sent: 31 January 2011 23:26
To: Bogaso Christofer
Cc: r-help@r-project.org
Subject: Re: [R] From data frame to list object
On Jan 31, 2011, at 1:03 PM, Bogaso Christofer wrote:
Dear all, let say I have following d
us [mailto:dwinsem...@comcast.net]
Sent: 31 January 2011 23:26
To: Bogaso Christofer
Cc: r-help@r-project.org
Subject: Re: [R] From data frame to list object
On Jan 31, 2011, at 1:03 PM, Bogaso Christofer wrote:
> Dear all, let say I have following data frame:
>
>
> dfrm <- dat
On Jan 31, 2011, at 1:03 PM, Bogaso Christofer wrote:
Dear all, let say I have following data frame:
> dfrm <- data.frame(x=rnorm(18), y=rep(c("a", "b", "c"), each=6))
> tapply(dfrm$x, dfrm$y, c)
$a
[1] 0.9711995 1.4018345 -1.4355713 -0.5106138 -0.8470171
[6] 1.1634586
$b
[1] -0.8058164
Dear all, let say I have following data frame:
> data.frame(x=rnorm(18), y=rep(c("a", "b", "c"), each=6))
x y
1 -1.072152537 a
2 0.382985265 a
3 0.058877377 a
4 -0.006911939 a
5 -2.355269051 a
6 -0.303095553 a
7 0.484038422 b
8 0.733928931 b
9 -1.136014346 b
7 matches
Mail list logo