Skip to content

Instantly share code, notes, and snippets.

View RohanAlexander's full-sized avatar

Rohan Alexander RohanAlexander

View GitHub Profile
library(Tidyverse) # A collection of data-related packages
library(janitor) # Helps clean datasets
library(tidyr) # Helps make tidy datasets
@RohanAlexander
RohanAlexander / miscRBitsAndPieces.R
Last active June 8, 2020 00:39
Random R code that is useful to be able to copy when needed
# Uncount can useful, for instance when making histograms.
test <-
tibble(
word = c(
"Rohan", "Rohan",
"Monica", "Monica", "Monica", "Monica", "Monica", "Monica",
"Bayes", "Bayes", "Bayes", "Bayes"
),
date = c(
1998, 1999,