Displaying 1 result from an estimated 1 matches for "ffin".
Did you mean:
fin
2008 Dec 12
3
loop with dates
Hello,
I am trying to do a loop with dates, but when I try to use the index is not
a date.
Fcorte <- as.Date('2008/11/30',format = "%Y/%m/%d")
fini <- Fcorte + 1
ffin <- seq(fini,by='months',length=2)[2] - 1
for (i in seq(fini,to = ffin, by='days'))
print (weekdays(i)) # i doesn't a date
How can I do a loop with dates and get the index of each date? are there a
method to convert the index i to date?
Thanks in advance.
[[alter...