Cheat Sheet

Troubleshooting

When you don’t see any > at the bottom of your console, hitting escape might help. If it doesn’t, clicking the stop sign in the top right corner of the console might help.

You will be able to solve any other problem when you google it.

Shortcuts

Shortcut Result
Alt + - <-
Ctrl+ Enter Run selected code from Script
Enter Run line of code in Console

Useful packages

Useful functions

Packages

Loading data

Examining objects

Checking for special values

  • is.na()
  • anyNA()
  • is.nan()
  • is.infinite()

Creating objects

Selecting subsets of objects

When a is a data.frame

Visualisation

Iterating

Diversity analysis