knitr::opts_chunk$set(echo = FALSE, message = FALSE)
data_dir <- "~/Documents/csu/stat555/data/"

R Markdown

library(dplyr)
# extract a subset of the mtcars data
df <- mtcars %>%
    mutate(make_model = row.names(mtcars)) %>%
    filter(cyl == 4) %>%    
    select(make_model, mpg, wt) %>%
    mutate(wt = wt*1000) %>%
    arrange(make_model) 


library(knitr)
kable(df)


Including Plots

You can also embed plots, for example:

plot(pressure)


fouticus/afr documentation built on May 18, 2020, 5:30 p.m.