print.desk | R Documentation |
This function implements an S3 method for printing regression- and test-results generated by functions of the desk package. Used for internal purposes.
## S3 method for class 'desk'
print(x, details, digits = 4, ...)
x |
object of class desk to be printed to the console. |
details |
logical value indicating whether details of object |
digits |
number of digits to round to (only output). |
... |
any argument that |
No return value. Called for side effects.
## Simple regression model
tip.est <- ols (y ~ x, data = data.tip)
## Check its class
class(tip.est)
#> [1] "desk" "lm"
## Standard regression output
print(tip.est) # same as tip.est
## Regression output with details rounded to 2 digits
print(tip.est, details = TRUE, digits = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.