Sharedtest / faithful.ipynbOpen in CoCalc

Faithful data in R on CoCalc

require("faithful")
Loading required package: faithful Warning message in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : “there is no package called ‘faithful’”
plot(faithful)
lmf <- lm("eruptions ~ waiting", data=faithful)
lmf
Call: lm(formula = "eruptions ~ waiting", data = faithful) Coefficients: (Intercept) waiting -1.87402 0.07563
plot(lmf)