forked from katiejolly/met-council-R
-
Notifications
You must be signed in to change notification settings - Fork 0
/
12-notes.Rmd
42 lines (22 loc) · 1.82 KB
/
12-notes.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Miscellaneous notes
## Where to get help
* Don't underestimate the power of a good Google search
> Include R, a function name/keyword, and avoid terms specific to your data. For example "R ggplot legend title" is likely more effective than "how to change legend titles"
* [RStudio Community Forum](https://community.rstudio.com/)
* [Stack Overflow](https://stackoverflow.com/)
* Twitter using [#rstats](https://twitter.com/hashtag/rstats?lang=en)
## Speed versus readability
There's a long (and not very productive) history of tension between the tidyverse (packages we have discussed in this document) and other frameworks. One of the most prominent alternatives is `data.table`, and I'm showing my bias by calling it an alternative.
`data.table` is certainly the faster and more computationally efficient framework, but I think you lose the readability and predictable structure of the tidyverse. There is also far more functionality built off of the tidyverse than data.table. If you ask someone at Metro Transit, they will probably argue that there's with competition to data.table. If you use R for very large data, it may be worth learning data.table at some point.
## Keyboard shortcuts
(These are specific to Windows but their translations work on Macs)
* Insert a new chunk: *ctrl + alt + i*
* Run current line/selection: *ctrl + enter*
* Run current chunk: *ctrl + alt + c*
* Open a dataset to view: *ctrl + click on dataset name in code*
> For example, if I wanted to open a dataset called x and I had code for x <- filter(x, ...) I could click on the first x to open it
* Knit markdown: *ctrl + shift + k*
* Interrupt currently executing command: *esc*
* Clear console: *ctrl + l*
* Open new R script: *ctrl + shift + n*
[Complete List](https://support.rstudio.com/hc/en-us/articles/200711853-Keyboard-Shortcuts) available online!