Created
November 6, 2021 00:37
-
-
Save ayoskovich/1ed005fe4d61fe164d652ac0d89c1c06 to your computer and use it in GitHub Desktop.
R snippets
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
snippet qq | |
dbGetQuery(con, read_file(here('${0}'))) | |
snippet gl | |
${0} %>% glimpse() | |
snippet vv | |
${0} %>% View() | |
snippet pw | |
pivot_wider( | |
names_from=${1}, | |
values_from=${2} | |
) | |
snippet hist | |
ggplot(aes(x=${1}))+ | |
geom_histogram() | |
snippet scatter | |
ggplot(aes(x=${1}, y=${2}))+ | |
geom_point() | |
snippet ip | |
install.packages('${1}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment