0

I want to split data in training ans testing but not randomly. I want first 80% of rows should be treated as training and rest as testing.

rows=nrow(data)
index=0.80*row
train=data[1:index]

Can anybody help?

user15051990
  • 1,835
  • 2
  • 28
  • 42

0 Answers0