how to create dates in a range in R code example
Example: how to create dates in a range in R
# Set the start and end point of your range
start.Date <- as.Date("2020/1/1")
end.Date <- as.Date("2020/1/10")
# Createthe sequence of dates. Use the "by =" argument to indicate the period of time
# for the sequence
date.range <- seq.Date(start.Date, end.Date, by = "day")
print(date.range)