sorry for being a little bit imprecise, Chuck interpreted my question
as desired.
Armin
__
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 pr
On Wed, 3 Dec 2008, axionator wrote:
Hi all,
I have a data frame with "clustered" rows as follows:
Cu1 x1 y1 z1 ...
Cu1 x2 y2 z2 ...
Cu1 x3 y3 z3 ... # end of first cluster Cu1
Cu2 x4 y4 z4 ...
Cu2 x5 y5 z5
Cu2 ... # end of second cluster Cu2
Cu3 ...
...
"cluster"-size is 3 i
Not sure exactly what you mean by 'sample' since you did not provide
an example of the expected output, or input data that could be used.
Here is an example of taking one sample from each cluster:
> df <- data.frame(id=paste("C", rep(1:5, each=3), sep=''), data=1:15)
> # sample 1 from each cluster
Hi all,
I have a data frame with "clustered" rows as follows:
Cu1 x1 y1 z1 ...
Cu1 x2 y2 z2 ...
Cu1 x3 y3 z3 ... # end of first cluster Cu1
Cu2 x4 y4 z4 ...
Cu2 x5 y5 z5
Cu2 ... # end of second cluster Cu2
Cu3 ...
...
"cluster"-size is 3 in the example above (rows making up a cl
4 matches
Mail list logo