print.my_lm: Print Model Information for Custom Linear Regression

Description Usage Arguments Examples

Description

Provides improved output for displaying the fitted model using the custom my_lm() function.

Usage

1
2
## S3 method for class 'my_lm'
print(x, ...)

Arguments

x

An object of class my_lm

...

Not used.

Examples

1
2
3
4
5
6
7
model = my_lm(mpg ~ disp, data = mtcars)

# Explicit call of the print function
print(model)

# Implicit call of the print function
model

r-pkg-examples/r-s3-lm documentation built on May 19, 2019, 9:38 p.m.