search for: trackcurv

Displaying 6 results from an estimated 6 matches for "trackcurv".

Did you mean: trackcurve
2005 Nov 22
1
failure in `setClass' examples
...Class'. Could somebody please help explain why the last `setIs' call is returning the warning and whether this is expected? R> setClass("track", + representation(x="numeric", y="numeric")) [1] "track" R> setClass("trackCurve", + representation("track", smooth = "numeric")) [1] "trackCurve" R> setClass("trackMultiCurve", + representation(x="numeric", y="matrix", smooth="matrix"), + prototype = li...
2010 May 29
3
S4 dispatch for .DollarNames (utils)
...nction that is now called to get completion possibilities. My R code looks like this: setGeneric( ".DollarNames" ) setClass("track", representation(x="numeric", y="numeric")) ## A class extending the previous, adding one more slot setClass("trackCurve", representation(smooth = "numeric"), contains = "track") setMethod( ".DollarNames", signature( x = "track", pattern = "character" ), function(x, pattern){ grep( pattern, c("foo", "bar"), value = TRUE ) } )...
2019 Nov 11
2
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
...> >> safe as far as you see it? By safe, I mean equivalent to your suggestion of inherits(x, ???) . > Those aren't equivalent if S4 gets involved. You can see it if you run > this code: > example("new") # Creates an object named t2 of class "trackcurve" > # that contains "track" > inherits(t2, "track") # TRUE > "track" %in% class(t2) # FALSE > I can't think of any examples not involving S4. > Duncan Murdoch Thank you, Duncan. That's definitely a str...
2019 Nov 10
2
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
> On Nov 10, 2019, at 3:36 AM, Martin Maechler <maechler at stat.math.ethz.ch> wrote: > >>>>>> Gabriel Becker >>>>>> on Sat, 2 Nov 2019 12:37:08 -0700 writes: > >> I agree that we can be careful and narrow and still see a >> nice improvement in behavior. While Herve's point is valid >> and I understand his frustration,
2019 Nov 10
0
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
...be > > ??? %in% class(x) > > safe as far as you see it? By safe, I mean equivalent to your suggestion of inherits(x, ???) . Those aren't equivalent if S4 gets involved. You can see it if you run this code: example("new") # Creates an object named t2 of class "trackcurve" # that contains "track" inherits(t2, "track") # TRUE "track" %in% class(t2) # FALSE I can't think of any examples not involving S4. Duncan Murdoch
2019 Nov 12
0
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
...far as you see it? By safe, I mean equivalent to your suggestion of inherits(x, ???) . > > > Those aren't equivalent if S4 gets involved. You can see it if you run > > this code: > > > example("new") # Creates an object named t2 of class "trackcurve" > > # that contains "track" > > > inherits(t2, "track") # TRUE > > "track" %in% class(t2) # FALSE > > > I can't think of any examples not involving S4. > > > Duncan Murdoch &g...