Turning R script to a sleek report

infoart.ca
Jul 29, 2021

--

All it takes is an R script with the desired processes:

#data:
df=mtcars
head(df)
# Run a linear model
model1 <- lm (mpg~ wt, data = df)
library (broom)
# Inspect the model summary table
tidy(model1)

saving it ‘PDF-report.R’, and a sweet click:

Cmd+Shft+k:

I choose HTML

and isn’t it sleek!

--

--

infoart.ca
infoart.ca

Written by infoart.ca

Center for Social Capital & Environmental Research | Posts by Bishwajit Ghose, BI consultant and lecturer at the University of Ottawa

No responses yet