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
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 <-
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")
#
[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
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")
##
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:
...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