[Rd] Wishlist: abs method for difftime

2006-12-07 Thread Stephen D. Weigand
I am often taking the absolute value of a difftime object (after coercing it to numeric) in order to see how far apart in time two events are. For example, I might want to know if two events occurred within 100 days of each other using something like abs(difftime(Date1, Date2)) < 100 Below is a s

Re: [Rd] Matplot does not work with x being POSIXt class (PR#9412)

2006-12-07 Thread Gregor Gorjanc
Hi, Don MacQueen wrote: ... > At 1:56 PM +0100 12/7/06, [EMAIL PROTECTED] wrote: >> Hi, >> >> Matplot works with x being Date class but not POSIXt. Here is the >> example with R version 2.5.0 Under development (unstable) (2006-12-06 >> r40129) >> >> Example: >> >> x <- Sys.Date() - c(1:10) >> y <-

Re: [Rd] Matplot does not work with x being POSIXt class (PR#9412)

2006-12-07 Thread Don MacQueen
As Peter said, matplot plots matrices. The columns of a matrix are vectors of numbers. A POSIXlt object is not a vector of numbers, it is a list. So it shouldn't work. And should not be expected to work. But with a POSIXct object it will work. x <- strptime(as.character(x), format="%Y-%m-%d") #

Re: [Rd] Matplot does not work with x being POSIXt class (PR#9412)

2006-12-07 Thread Peter Dalgaard
[EMAIL PROTECTED] wrote: > Hi, > > Matplot works with x being Date class but not POSIXt. Here is the > example with R version 2.5.0 Under development (unstable) (2006-12-06 > r40129) > > Example: > > x <- Sys.Date() - c(1:10) > y <- cbind(1:10, 10:1) > class(x) > ## [1] "Date" > matplot(x, y) > > x

[Rd] Matplot does not work with x being POSIXt class (PR#9412)

2006-12-07 Thread gregor . gorjanc
Hi, Matplot works with x being Date class but not POSIXt. Here is the example with R version 2.5.0 Under development (unstable) (2006-12-06 r40129) Example: x <- Sys.Date() - c(1:10) y <- cbind(1:10, 10:1) class(x) ## [1] "Date" matplot(x, y) x <- strptime(as.character(x), format="%Y-%m-%d") ##

Re: [Rd] Cannot run R (PR#9411)

2006-12-07 Thread Uwe Ligges
That it does not run does not mean there is a bug in R, so why do you submit a bug report that must be handled manually by some R Core member? Please tell us the error message, we cannot help you unless you provide us with the relevant details. Uwe Ligges [EMAIL PROTECTED] wrote: > Full_Name:

[Rd] Prerelease tarballs of R 2.4.1

2006-12-07 Thread Peter Dalgaard
...are being built every morning (CET time) and made available at http://cran.r-project.org/src/base-prerelease/ -peter __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel