Tips and Tricks

for working in RStudio

Useful shortcuts

See the complete set of shortcuts for RStudio.

For a quick reference in RStudio press Alt + Shift + K

Enumeration of strings

To create automatically enumerated strings use paste0 function:

a <- c("A", "B", "C")
b <- c("1", "2", "3")
paste0(a, b)
## [1] "A1" "B2" "C3"
paste0("A",b)
## [1] "A1" "A2" "A3"
comments powered by Disqus