Hi How do I create an element with specificiation " Class 'Date' num "
The problem arises when I try to construct my own data structure set in the "termstrc" package. The model list should look like: R> str(govbonds$GERMANY) List of 8 $ ISIN : chr [1:52] "DE0001141414" "DE0001137131" "DE0001141422" ... $ MATURITYDATE:Class ' Date ' num [1:52] 13924 13952 13980 14043 ... $ ISSUEDATE :Class ' Date ' num [1:52] 11913 13215 12153 13298 ... $ COUPONRATE : num [1:52] 0.0425 0.03 0.03 0.0325 ... $ PRICE : num [1:52] 100 99.9 99.8 99.8 ... $ ACCRUED : num [1:52] 4.09 2.66 2.43 2.07 ... $ CASHFLOWS :List of 3 ..$ ISIN: chr [1:384] "DE0001141414" "DE0001137131" "DE0001141422" ... ..$ CF : num [1:384] 104 103 103 103 ... ..$ DATE:Class ' Date ' num [1:384] 13924 13952 13980 14043 ... $ TODAY :Class ' Date ' num 13908 I am trying to create my own basis data.I can create list elements of the type "Date", but not of type " Class 'Date' num ". This seems to block further methods of this package to work properly. Can someone help? Thanks, Tintin ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.