I have a dataframe with these 3 columns,I want to create random values for each row. The random value for each row should be between the start and stop and the number of random values should be equal to the value of column:times of the dataframe.
> Example:
start end times
82716683 82730328 1
11106535 11262507 3
Ouput:
start end times random
82716683 82730328 1 82716965
11106535 11262507 3 11069855
11106535 11262507 3 11115562
11106535 11262507 3 11185696
I am new to R, I am trying to do it via loops but the main file is really big. So, I am looking for a better solution. Please let me know if you ahve any idea.