On Dec 11, 2007 10:55 AM, Ingrid H. G. Østensen <
Ingrid.H.G.Ostensen@rr-research.no> wrote:

> Hi
>
> I have tried to find a way to split the ExpressionSet ALL into 2 random
> groups. I am able to divide it into 2 groups like this:
>
> ALL_1 <- ALL[1:6312,]
> ALL_2 <- ALL[6313:12625,]
>
> but the features are not randomly selected. Any suggestions?
>

See ?sample:

s1 <- sample(1:nrow(ALL),6312)
ALL_1 <- ALL[s1,]
ALL_2 <- ALL[-s1,]

This is untested, but I hope you get the idea.

Sean

	[[alternative HTML version deleted]]

