search for: dayoftransact

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

2008 Nov 20
1
How to convert S4 class slots into data.frame or how to assign variables of type 'Date'
...ethod works quite good but the problem is that I have slots of type 'Date' and this method doesn't preserve the type but converts it to numeric. A couple of tests showed that this is actually a problem of assigning values to data.frame column. Something like this: > slotlist$DayOfTransaction <- slot(Transaction, DateOfTransaction) would preserve the type of DateOfTransaction as 'Date'. But I don't see a way to use this assigning scheme in my method without using the actual slotnames and giving up a lot of flexibility. Do you have any suggestions? Is there maybe e...