Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 993
Kernel: R (R-Project)

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)
Image in a Jupyter notebook
lmf <- lm("eruptions ~ waiting", data=faithful) lmf
Call: lm(formula = "eruptions ~ waiting", data = faithful) Coefficients: (Intercept) waiting -1.87402 0.07563
plot(lmf)
Image in a Jupyter notebookImage in a Jupyter notebookImage in a Jupyter notebookImage in a Jupyter notebook