I want to create a sequence of numbers as a string. I have columns "start" and "end" indicating the start and end of the sequence. The desired output is a string with a sequence by 1. See the example below.
df <- data.frame(ID=seq(1:5),
start=seq(2,10,by=2),
end=seq(5,13,by=2),
desired_output_aschar= c("2,3,4,5", "4,5,6,7", "6,7,8,9", "8,9,10,11", "10,11,12,13"))
View(df)
Thank you in advance...