search for: 200203

Displaying 1 result from an estimated 1 matches for "200203".

Did you mean: 20203
2007 May 10
3
Getting the last day of the month.
...nth. To get the last day of the month, I tried > as.Date(as.yearmon(x$Date,frac=0)) But I don't get the last day of the month here. (Tried frac=1 too.) I then add a month to the date, substract one day from the resultant date. But this wouldn't work for December. > x$YearEnd [1] 200203 200303 200403 200503 200603 200603 200312 200503 200603 200203 200303 [12] 200403 200503 200512 200612 200203 200303 200403 200503 200603 > > x$Date <- as.Date(ISOdate(substr(x$YearEnd,1,4), + as.integer(substr(x$YearEnd,5,6))+1, + 1))-1 > x$Date [1] "2002-03-31" "2003-...