📅  最后修改于: 2022-03-11 14:57:41.155000             🧑  作者: Mango
" For loop not a good option and not recommended in R because we loose
the class of the object and hence the best solution is listed below
which does the same task"
DF <- data.frame(X = 1:100)
DF$Date <- seq.Date(from = as.Date("2020-03-07"), length.out = nrow(DF), by = 1)