print.my_lm: Print Model Information for Custom Linear Regression

View source: R/print_my_lm.R

print.my_lmR Documentation

Print Model Information for Custom Linear Regression

Description

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

Usage

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

Arguments

x

An object of class my_lm

...

Not used.

Examples

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 Oct. 28, 2024, 12:20 a.m.