On Thu, Jun 10, 2010 at 3:39 PM, Gustaf Rydevik
wrote:
> Hi all,
>
> The recent change in 2.11 that made as.numeric() return false on
> difftime-objects broke some of my code that calculated age classes of
> individuals using cut(). While this was no big thing to fix for me, it
On Tue, Jun 22, 2010 at 7:50 PM, David Winsemius wrote:
>
> On Jun 22, 2010, at 1:33 PM, Gustaf Rydevik wrote:
> Cannot help you there, but have you looked at the help page for difftime?
>
> "The as.double method returns the numeric value expressed in the specified
> uni
On Wed, Jun 23, 2010 at 7:13 AM, Peter Dalgaard wrote:
> Gustaf Rydevik wrote:
>
>> Oh, I forgot to mention that the workaround of using as.double (or
>> as.numeric) works fine, and I've done that.
>> It's just that it can take quite a while (as in several hours
breaking.
I'm guessing something as simple as
cut.difftime<-function(x,...){
x<-as.numeric(x)
cut(x,...)
}
would suffice.
best regards,
Gustaf
--
Gustaf Rydevik, M.Sci.
tel: +46(0)703 051 451
address:Essingetorget 40,112 66 Stockholm, SE
skype:gus
Full_Name: Gustaf Rydevik
Version: 2.7.1
OS: Win XP professional
Submission from: (NULL) (130.237.97.254)
The following lines of code crash R 2.7.1 (=cause R to show "The R gui has
encountered a problem and needs to close"). Replicated on two WinXp
professional machines, as well