R Markdown Syntax Guide

We build a linear regression below.

fit = lm(dist ~ speed, data = cars)
b = coef(summary(fit))
plot(fit)

The slope of the regression is 3.9324088.