How should I deal with 'from' must be of length 1 error?
问题 I tried to count days between specific dates. I have 2 columns with all character vectors. start.date <- c("2015-01-10","2015-01-11","2015-02-24") end.date <- c("2015-03-10","2015-04-01","2015-06-13") date10 <- data.frame(cbind(start.date,end.date)) date10$start.date <- as.character(date10$start.date) date10$end.date <- as.character(date10$end.date) str(date10) and the specific dates are from 2015-04-11 to 2015-07-10. so I made all date which is between the specific dates by using seq(). sp