man <command>
= open the manual for any linux command (e.g.man git
would give you the manual for git)<command> --help
= condensed version of linux command manualshistory | grep "SEARCH TERM HERE"
= Finding specific phrases in terminal history using grepCtrl + l
= shortcut for "clear"Ctrl + r
= reverse interative search to search backwords through your executed commands
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
## Example function for converting geo coordinates from degree-decimal minutes to decimal degrees. | |
## For full discussion please see StackOverflow #14404596 | |
## https://stackoverflow.com/questions/14404596/converting-geo-coordinates-from-degree-to-decimal | |
library(tidyr) | |
library(dplyr) | |
df <- tribble( | |
~site, ~lat, ~lon, | |
"105252", "30°25.264", "9°01.331", |
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
#### For Loop #### | |
setwd("~/GitHub/Gists/gauge_summary/data") | |
### This is an example of using the tidyverse with functional programming to get a df/ tibble of the gauges called "gauge list" | |
### THis is a tibble/dataframe and not a list | |
gauge_list <- sites %>% | |
select(gauge_station) %>% | |
unique() | |
This is an example of how to create a stacked bar plot with percent family from a fish data set. Using this example you will be able to take a full data set and compute the family proportions just before plotting without the need to save a new dataframe.
This is dependent on the dplyr
and ggplot2
libraries.