I have a data frame "MYdata" and want to split this up to create three new datasets "test_1", "test_2" and "test_3". The first one "test_1" should contain only the first column from "MYdata", the second dataset should only contain the second column and so on. I am trying this:
for (i in 1:3)
{
test_[i] <- MYdata[i]
}
But I get the following error message: "Error in test_[i] <- MYdata[i] : object 'test_' not found"
Any ideas?