Print Data - Generic function

DESCRIPTION:
Prints the input.

This function is generic (see Methods); method functions can be written to handle specific classes of data. Classes which already have methods for this function include: AsIs, aliased, anova, aov, aovlist, coef, coxreg, data.frame, design, factor, family, formula, gam, glm, htest, listof, lm, loess, mlm, ms, nls, nls.summary, ordered, pframe, preplot.loess, smooth, smooth.spline, specs.loess, specs.stl, stl, summary, summary.gam, summary.glm, summary.lm, summary.loess, summary.tree, surv.diff, surv.fit, table, tree.


USAGE:
print(x, ...)

REQUIRED ARGUMENTS:
x:
any object. Missing values (NAs) are allowed.

OPTIONAL ARGUMENTS:
...:
most methods have additional arguments like digits to control how many digits of a number should be printed and quote to control whether or not quotes are put around character strings.

VALUE:
x, with the invisible flag set to prevent reprinting.

SIDE EFFECTS:
object x is printed in an appropriate format.

DETAILS:
The print methods for fitted objects, like those of class "lm", usually hide the more esoteric parts of the object - showing you what is most likely to be of immediate use. There are some functions to examine some of these, see coefficients for example.

The standard .Program of S-PLUS calls print to print results of function calls, unless the invisible flag has been set (see invisible). The options width and length control line width and page length. When printing a vector a new format may be chosen for each page. When printing matrices, the column labels are repeated once per page.


SEE ALSO:
cat , format , invisible , options .

EXAMPLES:
# in a loop, explicit printing is necessary
for(i in 1:10) print(i)
# compare this with
for(i in 1:10) i

print(unclass(an.object)) # see the private view of the object