Post

1 follower Follow
0
Avatar

Create a new dataset from for loop

Hello,

I would like to create a new dataset in which the varables are "Day1, Day2, Day3,..."

I would like to use a for loop like:

for (i in c(1:10))

and then create the variables "Day_i", so I can see in my new dataset "Day" from 1 to 10.

How can I do it?

Thank you!

Marta Mella