Sunday, September 28, 2008
This should work to generate an arbitrary length vector, containing the repeated sequence of the numbers 1 through 10:
rep(1:10,length.out=nTrain)
Cool!
rep(1:10,length.out=nTrain)
Cool!