Created
December 25, 2019 16:46
-
-
Save nathancday/b7308a40bc7173be6e4191675092f84d to your computer and use it in GitHub Desktop.
Open in Rstudio to see a outline demo for organizing your Rscripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' --- | |
#' title: The best title | |
#' author: You | |
#' date: 2019-12-25 | |
#' --- | |
library(magrittr) | |
library(tidyverse) | |
# Import ------------------------------------------------------------------ | |
data(mpg) | |
# * Viz ------------------------------------------------------------------- | |
ggplot(mpg, aes(displ, hwy)) + | |
geom_point() | |
# * * Correlation ------------------------------------------------------------- | |
mpg %$% | |
cor(displ, hwy) | |
# Functions --------------------------------------------------------------- | |
top_func <- function() { | |
sub_func <- function() {} | |
print("outlines rule!") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment