This should be a very simple code question to many of you, but I am brand new to R and struggling with the basics.

I have a simple csv data of 500 observations, with a header, and I am trying to split it into two groups (cut at row 251) and name them A and B so that I keep running tests on them separately.

I have tried the split function, but I cannot get the code right. Any help would be greatly appreciated.

Thank you.