The R Project SVN R

Rev

Rev 68948 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68948 Rev 71228
Line 1... Line 1...
1
% File src/library/methods/man/show.Rd
1
% File src/library/methods/man/show.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2007 R Core Team
3
% Copyright 1995-2016 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{show}
6
\name{show}
7
\alias{show}
7
\alias{show}
8
\alias{show-methods}
8
\alias{show-methods}
Line 50... Line 50...
50
  \code{\link{showMethods}} prints all the methods for one or more
50
  \code{\link{showMethods}} prints all the methods for one or more
51
  functions.
51
  functions.
52
}
52
}
53
\examples{
53
\examples{
54
## following the example shown in the setMethod documentation ...
54
## following the example shown in the setMethod documentation ...
55
setClass("track",
-
 
56
         representation(x="numeric", y="numeric"))
55
setClass("track", slots = c(x="numeric", y="numeric"))
57
setClass("trackCurve",
-
 
58
         representation("track", smooth = "numeric"))
56
setClass("trackCurve", contains = "track", slots = c(smooth = "numeric"))
59
 
57
 
60
t1 <- new("track", x=1:20, y=(1:20)^2)
58
t1 <- new("track", x=1:20, y=(1:20)^2)
61
 
59
 
62
tc1 <- new("trackCurve", t1)
60
tc1 <- new("trackCurve", t1)
63
 
61