Displaying 1 result from an estimated 1 matches for "dateofmaturity".
2012 Nov 05
1
Dates as POSIXt
...havior of this class is that I would like more information about. Online searching have only told me that it is a virtual class.
When I do some calculations to get the dates of maturity into the 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 ),...