R Functions You Should Know
This document lists a few R functions everyone should know that aren't covered
elsewhere.
- ls() to list the items you have
- ls(,2) to list the items in directory number 2
- objects(1,,"mar*") to list items in directory 1 starting with "mar"
- seq() for creating sequences of integers
- match(), is.element() for finding entries that are in each of two vectors
- merge() for putting two data frames together
- rm() for removing objects
Return to R docs