R tips & tricks

If you are encountering a problem using R, you’ll likely to find a solution on the R help mailing list, online tutorials (A very convenient and easy accessible reference is Quick-R), one of the numerous blogs about R (see e.g., R bloggers, Cerebral Mastication, Recology) and the various other sources of information listed on the R website.

Still, it sometimes takes me time to find that little trick I need for this obscure problem I am having. And too often I know I have found the solution before, but can’t remember exactly where. So I started to keep a list with pieces of information I have needed at one point and may need again. For others this is, well, just another list with entry points to a number of very helpful or otherwise useful web pages.

General / various

Data handling

Functions

  • Finding the code for ‘hidden’ function in R or check this and this email threat.
  • The dput() function gives you an ASCII text representation of an R object, which can be used to recreate the object. Good for e.g., sharing in an example on fora or blog posts. Most useful for simpler objects such as data frames, vectors or matrices

Creating a R package

Graphs

Coding

Analysis

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s