tests/testthat/test-grab_coefs.R

context("Testing grab coefficients")

library(palmerpenguins)
data("penguins")
fit <- lm (bill_length_mm ~., data = penguins[,-8])
coefs <- as.vector(grab_coefs(fit))

expect_equal(round(coefs), c(15, 10, 6, -1, 0, 0, 0, 0, 2))
kimgannon/bis557 documentation built on Nov. 25, 2020, 7:09 a.m.