testing <- some.data[ind,]
training <- some.data[-ind,]
Regards
Petr
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of asdf1234
> Sent: Saturday, May 11, 2013 9:59 AM
> To: r-help@r-project.org
> Subject: [
Dear all,
I have a sample with 920 observations. I want to create a loop which takes
300 of these observations for the prediction and the rest to estimate the
model.
My idea was to create something like this:
cs.training.dat <- read.table...
cs.training.dat_sub1 <- subset(cs.training.dat,
2 matches
Mail list logo