[R] Antwort: Re: Dump of new Methods (SOLVED)

G.Maubach at weinwolf.de G.Maubach at weinwolf.de
Mon Jul 4 17:36:08 CEST 2016


Hi Bert,

many thanks.

Found them.

Kind regards

Georg




Von:    Bert Gunter <bgunter.4567 at gmail.com>
An:     G.Maubach at weinwolf.de, 
Datum:  04.07.2016 16:43
Betreff:        Re: [R] Dump of new Methods



?getwd

Cheers,
Bert


Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Mon, Jul 4, 2016 at 1:34 AM,  <G.Maubach at weinwolf.de> wrote:
> Dear Readers,
> Hi All,
>
> to drive my R knowlegde a bit further I followed the advice of some of 
you
> by reading Chambers: Programming with data.
>
> I tried some examples from the book:
>
> -- cut --
>
> setClass("track", representation (x = "numeric",
>                                     y = "numeric"))
>
> track <- function(x, y) {
>   # an object representing measurements 'y', tracked at positions 'x'
>   x <- as(x, "numeric")
>   y <- as(y, "numeric")
>   if(length(x) != length(y)) {
>     stop("x, y should have equal length!")
>   }
>   new("track", x = x, y = y)
> }
>
> dumpMethod("track", "track")
>
> setMethod("show", "track",
>           function(object) {
>             xy = rbind(object at x, object at y)
>             dimanmes(xy) = list(c("x", "y"),
>                                 1:ncol(y))
>             show(xy)
>           })
>
> setMethod("plot",
>           signature(x = "track", y = "missing"),
>           function(x, y, ...)
>             plot(unclass(x), xlab = "Position", ylab = "Value", ...)
>           )
>
> dumpMethod("plot", "track")
>
> -- cut --
>
> Where do I find the dumped data? Is it in a single file or is every dump
> stored in a separate file? Where is it stored on my drive?
>
> Kind regards
>
> Georg
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list