Cookbook for R
Welcome to the Cookbook for R (formerly named R Cookbook). The goal of the cookbook is to provide solutions to common tasks and problems in analyzing data.
Most of the code in these pages can be copied and pasted into the R command window if you want to see them in action.
- Basics
- Numbers
- Strings
- Formulas
- Data input and output
- Manipulating data
- Statistical analysis
- Graphs
- Scripts and functions
- Tools for experiments
Other useful resources
- Quick-R - an excellent quick reference
- R Reference card (PDF)
This site is created by Winston Chang. It is not related to Paul Teetor's excellent
R Cookbook (Amazon
link).
If you find any errors on this web site, please report them to winston@stdout.org.

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
The R code is freely available for use without any restrictions. In other words: you may reuse the R code for any purpose (and under any license), but if you want to reuse the other content of this website, you must adhere to the CC license.
