The R Project SVN R

Rev

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

Rev 68948 Rev 72321
Line 1... Line 1...
1
% File src/library/stats/man/predict.Rd
1
% File src/library/stats/man/predict.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-2014 R Core Team
3
% Copyright 1995-2017 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{predict}
6
\name{predict}
7
\title{Model Predictions}
7
\title{Model Predictions}
8
\usage{
8
\usage{
Line 62... Line 62...
62
  Chambers, J. M. and Hastie, T. J. (1992)
62
  Chambers, J. M. and Hastie, T. J. (1992)
63
  \emph{Statistical Models in S}.
63
  \emph{Statistical Models in S}.
64
  Wadsworth & Brooks/Cole.
64
  Wadsworth & Brooks/Cole.
65
}
65
}
66
\examples{
66
\examples{
67
\testonly{old <- Sys.setlocale("LC_COLLATE", "C")}
67
\dontshow{old <- Sys.setlocale("LC_COLLATE", "C")}
68
require(utils)
68
require(utils)
69
 
69
 
70
## All the "predict" methods found
70
## All the "predict" methods found
71
## NB most of the methods in the standard packages are hidden.
71
## NB most of the methods in the standard packages are hidden.
-
 
72
## Output will depend on what namespaces are (or have been) loaded.
-
 
73
## IGNORE_RDIFF_BEGIN
72
for(fn in methods("predict"))
74
for(fn in methods("predict"))
73
   try({
75
   try({
74
       f <- eval(substitute(getAnywhere(fn)$objs[[1]], list(fn = fn)))
76
       f <- eval(substitute(getAnywhere(fn)$objs[[1]], list(fn = fn)))
75
       cat(fn, ":\n\t", deparse(args(f)), "\n")
77
       cat(fn, ":\n\t", deparse(args(f)), "\n")
76
       }, silent = TRUE)
78
       }, silent = TRUE)
-
 
79
## IGNORE_RDIFF_END
77
\testonly{old <- Sys.setlocale("LC_COLLATE", old)}
80
\dontshow{old <- Sys.setlocale("LC_COLLATE", old)}
78
}
81
}
79
\keyword{methods}
82
\keyword{methods}