- [R] snippet intro -- https://jozef.io/r906-rstudio-snippets/
- [R] 11 snippets -- https://gitlab.com/jozefhajnala/gists/tree/master/rstudio/snippets
- [R] Kriging -- https://swilke-geoscience.net/post/2020-09-10-kriging_with_r/kriging/
- [R] Geospatial interpolation -- https://swilke-geoscience.net/post/spatial_interpolation/
- [R] Spatial Interpolation -- https://rspatial.org/raster/analysis/4-interpolation.html
- [R] Rayshader example -- https://gist.github.com/tylermorganwall/da117be116635e1d8dff61dbc7f9dc68
- [R] Re-center longitude -- AustralianAntarcticDivision/SOmap#34
- [R] Dot plot -- https://gist.github.com/ikashnitsky/2f3e2b2af6f50911bb775bbce6eb0fb8
- [R] Population Line Plot -- https://github.com/tylerjtran/populationLines/blob/master/populationLinesScript.R
- [JavaScript] Density Contour Matrix for Geospatial Datasets -- https://observablehq.com/@pstuffa/density-contour-matrix-for-geospatial-datasets
Last active
September 23, 2020 15:00
-
-
Save seasmith/f14c3d6b7d81dca69a4e6b8745763807 to your computer and use it in GitHub Desktop.
RStudio snippets
This file contains hidden or 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 .group_sum | |
group_by(${1:vars}) %>% | |
summarize(${2:value} = ${3:expression}) %>% | |
ungroup() | |
snippet .group_mut | |
group_by(${1:vars}) %>% | |
mutate(${2:value} = ${3:expression}) %>% | |
ungroup() | |
snippet .group_arr_mut | |
group_by(${1:vars}) %>% | |
arrange(${2:vars}) %>% | |
mutate(${3:col} = ${4:expression}) %>% | |
ungroup() | |
snippet .group_fil_mut | |
group_by(${1:vars}) %>% | |
filter(${2:cond}) %>% | |
mutate(${3:col} = ${4:expression}) %>% | |
ungroup() | |
snippet .group_fil_arr_mut | |
group_by(${1:vars}) %>% | |
filter(${2:cond}) %>% | |
arrange(${3:vars}) %>% | |
mutate(${4:col} = ${5:expression}) %>% | |
ungroup() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment