Turning R script to a sleek report
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!
…