Skip to content

Commit

Permalink
Improve \usage.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@15342 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
hornik committed Aug 8, 2001
1 parent a9a32a3 commit 3fda6c1
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 51 deletions.
22 changes: 11 additions & 11 deletions src/library/eda/man/line.Rd
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
\name{line}
\title{Robust Line Fitting}
\usage{
line(x, y)

coefficients(tukeyline.obj)
residuals(tukeyline.obj)
fitted.values(tukeyline.obj)
print(tukeyline.obj)
}
\alias{line}
\alias{coefficients.tukeyline}
\alias{coeff.tukeyline}
\alias{residuals.tukeyline}
\alias{fitted.values.tukeyline}
\alias{fitted.tukeyline}
\alias{print.tukeyline}
\alias{coef.tukeyline}
\alias{fitted.tukeyline}
\title{Robust Line Fitting}
\usage{
line(x, y)

\method{coef}{tukeyline}(tukeyline.obj)
\method{residuals}{tukeyline}(tukeyline.obj)
\method{fitted}{tukeyline}(tukeyline.obj)
\method{print}{tukeyline}(tukeyline.obj)
}
\arguments{
\item{x,y}{the arguments can be any way of specifying x-y pairs.}
}
Expand Down
16 changes: 8 additions & 8 deletions src/library/eda/man/medpolish.Rd
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
\name{medpolish}
\alias{medpolish}
\alias{plot.medpolish}
\alias{print.medpolish}
\title{Median Polish of a Matrix}
\description{
Fits an additive model using Tukey's \emph{median polish} procedure.
}
\usage{
medpolish(x, eps = 0.01, maxiter = 10, trace.iter = TRUE)
plot(medpolish.obj)
print(medpolish.obj)
\method{plot}{medpolish}(medpolish.obj)
\method{print}{medpolish}(medpolish.obj)
}
\alias{medpolish}
\alias{plot.medpolish}
\alias{print.medpolish}
\arguments{
\item{x}{a numeric matrix.}
\item{eps}{real number greater than 0. A tolerance for convergence:
Expand All @@ -17,9 +20,6 @@ print(medpolish.obj)
\item{trace.iter}{logical. Should progress in convergence be reported?}
\item{medpolish.obj}{object of class \code{medpolish}.}
}
\description{
Fits an additive model using Tukey's \emph{median polish} procedure.
}
\details{
The model fitted is additive (constant + rows + columns). The
algorithm works by alternately removing the row and column medians,
Expand Down
6 changes: 3 additions & 3 deletions src/library/eda/man/smooth.Rd
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
\name{smooth}
\title{Median Smoothing}
\alias{smooth}
\alias{print.tukeysmooth}
\alias{summary.tukeysmooth}
\title{Median Smoothing}
\description{
Tukey's smoothers, \emph{3RS3R}, \emph{3RSS}, \emph{3R}, etc.
}
Expand All @@ -11,8 +11,8 @@ smooth(x, kind = c("3RS3R", "3RSS", "3RSR", "3R", "3", "S"),
twiceit = FALSE,
endrule = "Tukey", do.ends = FALSE)
print(smoothobj, \dots)
summary(smoothobj, \dots)
\method{print}{tukeysmooth}(smoothobj, \dots)
\method{summary}{tukeysmooth}(smoothobj, \dots)
}
\arguments{
\item{x}{a vector or time series}
Expand Down
6 changes: 4 additions & 2 deletions src/library/mva/man/princomp.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ loadings(x)

screeplot(x, npcs = min(10, length(x$sdev)),
type = c("barplot", "lines"), main = deparse(substitute(x)), \dots)
plot(x, \dots)
print(x, \dots) summary(object) predict(object, \dots)
\method{plot}{princomp}(x, \dots)
\method{print}{princomp}(x, \dots)
\method{summary}{princomp}(object)
\method{predict}{princomp}(object, \dots)
}
\arguments{
\item{x}{a matrix (or data frame) which provides the data for the
Expand Down
6 changes: 3 additions & 3 deletions src/library/nls/man/formula.nls.Rd
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
% $Id: formula.nls.Rd,v 1.3 2001/03/24 06:57:57 ripley Exp $
% $Id: formula.nls.Rd,v 1.4 2001/08/08 08:21:08 hornik Exp $
\name{formula.nls}
\alias{formula.nls}
\title{Extract Model Formula from nls Object}
\usage{
formula(object)
\method{formula}{nls}(object)
}
\alias{formula.nls}
\arguments{
\item{object}{an object inheriting from class \code{nls}, representing
a nonlinear least squares fit.}
Expand Down
10 changes: 5 additions & 5 deletions src/library/stepfun/man/ecdf.Rd
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
\name{ecdf}
\title{Empirical Cumulative Distribution Function}
\usage{
ecdf(x)
plot(\dots, verticals = FALSE, col.01line = "gray70")
}
\alias{ecdf}
\alias{print.ecdf}
\alias{summary.ecdf}
\alias{plot.ecdf}
\title{Empirical Cumulative Distribution Function}
\usage{
ecdf(x)
\method{plot}{ecdf}(\dots, verticals = FALSE, col.01line = "gray70")
}
\arguments{
\item{x}{numeric vector with the ``observations''.}
\item{\dots}{arguments to be passed to \code{\link{plot.stepfun}}, the
Expand Down
4 changes: 2 additions & 2 deletions src/library/ts/man/ar.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ar(x, aic = TRUE, order.max = NULL,
ar.mle(x, aic = TRUE, order.max = NULL, na.action, demean = TRUE,
series, \dots)

predict(ar.obj, newdata, n.ahead = 1, se.fit = TRUE)
\method{predict}{ar}(object, newdata, n.ahead = 1, se.fit = TRUE, \dots)
}
\arguments{
\item{x}{A univariate or multivariate time series.}
Expand Down Expand Up @@ -51,7 +51,7 @@ predict(ar.obj, newdata, n.ahead = 1, se.fit = TRUE)
\item{var.method}{the method to estimate the innovations variance
(see Details).}

\item{...}{additional arguments for specific methods.}
\item{\dots}{additional arguments for specific methods.}

\item{ar.obj}{a fit from \code{ar}.}

Expand Down
4 changes: 2 additions & 2 deletions src/library/ts/man/arima0.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ arima0(x, order = c(0, 0, 0),
xreg = NULL, include.mean, na.action = na.fail,
delta = 0.01, transform.pars = 2)

predict(arima0.obj, n.ahead = 1, newxreg, se.fit = TRUE)
\method{predict}{arima0}(object, n.ahead = 1, newxreg, se.fit = TRUE)

arima0.diag(fit, gof.lag = 10)
}
Expand Down Expand Up @@ -42,7 +42,7 @@ arima0.diag(fit, gof.lag = 10)
invertibility. If equal to 2, the optimization is rerun on
the original scale to find the Hessian.}
\item{arima0.obj, fit}{The result of an \code{arima0} fit.}
\item{object, fit}{The result of an \code{arima0} fit.}
\item{newxreg}{New values of \code{xreg} to be used for
prediction. Must have at least \code{n.ahead} rows.}
Expand Down
15 changes: 7 additions & 8 deletions src/library/ts/man/kernel.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,21 @@
\alias{print.tskernel}
\alias{plot.tskernel}
\alias{[.tskernel}

\title{Smoothing Kernel Objects}
\description{
The \code{"tskernel"} class is designed to represent discrete
symmetric normalized smoothing kernels. These kernels can be used to
smooth vectors, matrices, or time series objects.
}
\usage{
kernel(coef, m, r, name)

df.kernel(k)
bandwidth.kernel(k)
is.tskernel(k)

print(k, digits = max(3,getOption("digits")-3))
plot(k)
\method{print}{tskernel}(k, digits = max(3,getOption("digits")-3))
\method{plot}{tskernel}(k)
}
\arguments{
\item{coef}{the upper half of the smoothing kernel coefficients
Expand All @@ -29,11 +33,6 @@ plot(k)
\item{r}{the kernel order for a Fejer kernel.}
\item{digits}{the number of digits to format real numbers.}
}
\description{
The \code{"tskernel"} class is designed to represent discrete symmetric
normalized smoothing kernels. These kernels can be used to smooth
vectors, matrices, or time series objects.
}
\details{
\code{kernel} is used to construct a general kernel or
named specific kernels. The modified Daniell kernel
Expand Down
14 changes: 7 additions & 7 deletions src/library/ts/man/lag.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
\alias{lag}
\alias{lag.default}
\title{Lag a Time Series}
\description{
Computed a lagged version of a time series, shifting the time base
back by a given number of observations.
}
\usage{
lag(x, ...)
lag.default(x, k=1)
lag(x, \dots)
lag.default(x, k = 1, \dots)
}
\arguments{
\item{x}{A vector or matrix or univariate or multivariate time series}
\item{k}{The number of lags (in units of observations).}
\item{\dots}{Arguments for future methods.}
}
\description{
Computed a lagged version of a time series, shifting the time base
back by \code{k} observations.
\item{\dots}{further arguments to be passed to or from methods.}
}
\details{
Vector or matrix arguments \code{x} are coerced to time series.
Expand Down

0 comments on commit 3fda6c1

Please sign in to comment.