Skip to content
Prev 180473 / 398525 Next

Using sample to create Training and Test sets

Here's one possibility:

idx <- sample(nrow(acc))
training <- acc[idx[1:400], ]
testset <- acc[-idx[1:400], ]

Andy

From: Chris Arthur
Notice:  This e-mail message, together with any attachme...{{dropped:12}}