Displaying 1 result from an estimated 1 matches for "yeartmp".
Did you mean:
yearmo
2012 Nov 05
1
Dates as POSIXt
...data frame I find this behavior. (For simplicity assume that the only month is March.)
> DF[,"DateOfMaturity"] = NA
> DF[,"DateOfMaturityPrevious"] = NA
> DF[,"DateOfMaturityNext"] = NA
> maturityFeb = 14
> maturityMar = 16
> maturityApr = 15
> yearTmp = as.POSIXlt(DF$Date)$year+1900
> DF$DateOfMaturity = as.POSIXct(strptime(paste(yearTmp,03,maturityMar ), "%Y %m %d"))
> DF$DateOfMaturityPrevious = as.POSIXct(strptime(paste(yearTmp,02,maturityFeb ), "%Y %m %d")
> DF$DateOfMaturityNext = as.POSIXct(strptime(paste(yea...