Print Data - Generic function

DESCRIPTION:

Prints the input.

This function is an S Version 3 generic (see Methods); method functions can be written to handle specific S Version 3 classes of data. Classes that already have methods for this function include:
aliased, anova, aov, aovlist, bdFrame, bdGlm, bdLm, coef, coxph, 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.bdGlm, summary.bdLm, summary.loess, summary.tree, survdiff, survfit, 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.

For bdFrame and bdVector objects, the number of rows, columns, and so on that are printed is controlled by elements of bd.options:

print.bdFrame.rows : The maximum number of bdFrame rows to display when printing. The default value is 5.

print.bdFrame.columns : The maximum number of bdFrame columns to display when printing. The default value is 20.

print.bdVector.elements : The maximum number of bdVector elements to display when printing. The default value is 30.

DETAILS:

The print methods for fitted objects, like those of class "lm", usually hide the more esoteric parts of the object, displaying only immediately useful information. There are some functions to examine some of these esoteric aspects; for example, see coefficients.

The standard S-PLUS session 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 you print a vector, you can choose a new format for each page. When you print a matrix, the column labels are repeated once per page.

SEE ALSO:

, , , .

EXAMPLES:

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

# See the private view of an lm object:
print(unclass(lm(Fuel ~ Weight, data=fuel.frame)))