Re: [Rd] matplot.Date & matplot.POSIXct

2020-01-28 Thread Spencer Graves
On 2020-01-28 05:13, Martin Maechler wrote: Spencer Graves on Mon, 27 Jan 2020 23:02:28 -0600 writes: Still, as Abby mentioned, turning a simple function into the default method of an S3 generic is easy to do, but comes with a bit of cost, not just S3 dispatch which typically is neg

Re: [Rd] mrds function integratepdf cannot be found

2020-01-28 Thread peter dalgaard
Yes, looks like a missing export (and a missing example on the help page, which would have exposed the error...). mrds:::integratepdf() should do the appropriate "burglary" -pd > On 28 Jan 2020, at 12:09 , Patrick Giraudoux > wrote: > > Hi, > > Trying to use the function integratepdf of the

[Rd] mrds function integratepdf cannot be found

2020-01-28 Thread Patrick Giraudoux
Hi, Trying to use the function integratepdf of the mrds package, I get this message: |Error in integratepdf(fox.ds$ddf$ds$aux$ddfobj, select = rep(TRUE, nrow(fox.ds$ddf$ds$aux$ddfobj$xmat)), : could not find function "integratepdf" | Has anyone already had this issue ? Maybe the function is n

Re: [Rd] matplot.Date & matplot.POSIXct

2020-01-28 Thread Martin Maechler
> Spencer Graves > on Mon, 27 Jan 2020 23:02:28 -0600 writes: >   Thanks for the reply. > On 2020-01-27 19:56, Abby Spurdle wrote: >> Maybe I'm missing something really obvious here, but I was unable to >> create a matrix out of POSIXct object(s). >> Perhaps th

Re: [Rd] matplot.Date & matplot.POSIXct

2020-01-28 Thread Edzer Pebesma
Whether something "is" a matrix depends on whether you listen to is.matrix(x) or to inherits(x, "matrix"): x = Sys.Date () + 1:16 y = as.POSIXct (x) dim(y) = c(4,4) is.matrix(y) # [1] TRUE inherits(y, "matrix") # [1] FALSE f = factor(letters[1:9]) dim(f) = c(3,3) is.matrix(f) # [1] TRUE inherits(

Re: [Rd] matplot.Date & matplot.POSIXct

2020-01-28 Thread Abby Spurdle
> > Maybe I'm missing something really obvious here, but I was unable to > > create a matrix out of POSIXct object(s). > > Perhaps that deserves a separate discussion...? >Can you provide an example? -- #date and time objects x = Sys.Date () + 1:16 y = as.POSIXct (x) #matrices str (matrix