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.
print(x, ...)
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.
# in a loop, explicit printing is necessary for(i in 1:10) print(i) # compare this with for(i in 1:10) iprint(unclass(an.object)) # see the private view of the object