In this just "d[ s, ]" would suffice.
See if this example helps:
data(iris)
w <- sample( 1:nrow(iris), 10, replace=TRUE )
iris[w, ]
Regards, Adai
SUBSCRIBE allstat Anonymous wrote:
> Hi David
>
> I think you just do the following:
>
> Newdataset<- data.frame(s,x[s],y[s])
>
> Hope that helps
> Siva
>
>
>
|