Skip to main content

R from the Beginning

  • Chapter
  • First Online:
  • 7505 Accesses

Part of the book series: Use R! ((USE R,volume 36))

Abstract

R is a system for statistical computing and graphing. It consists of a language and a software environment. R has been widely used for academic and research purposes and is increasingly being deployed in corporate environments. R is a freely available software, under a GNU license, and is supported by the R Development Core Team. The strength of R is its extensibility through the packages developed by the community of R users, available through the CRAN repository, where support is also given. Furthermore, it is available for a wide range of platforms, including Windows, Mac, and Linux. In this chapter, we explain the basic background to help readers get used to R.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   79.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    An article in the New York Times in January 2009 surprised many professionals and was a milestone in R’s surging popularity (http://www.nytimes.com/2009/01/07/technology/business-computing/07program.html).

  2. 2.

    http://cran.r-project.org/doc/manuals/R-admin.html.

  3. 3.

    If you choose SDI (simple document interface) in the custom installation, you only get the R Console with the menu bar. You can run the SDI or the MDI (multiple document interface) by adding the option --sdi or --mdi, respectively, to the command line in the shortcut icon properties, e.g., C:∖R∖R-2.14.1∖bin∖i386∖Rgui.exe --sdi.

  4. 4.

    There are some easy-to-use graphical alternatives to some R functions (Sect. 2.8). They can be useful when migrating from other systems to R, but we recommend using the R Console and scripting facilities as much as possible to exploit R’s possibilities.

  5. 5.

    When INTRO is pressed before a command is completed (for example, if a closing bracket ‘)’ is expected), then the prompt symbol changes to +. This is sometimes annoying when learning R and usually indicates a mistake. Simply press the Esc key to return to the prompt symbol.

  6. 6.

    Do not worry about what it means for the moment, just type it.

  7. 7.

    The shape of the histogram may be slightly different due to the randomness of the data.

  8. 8.

    The working directory will not change.

  9. 9.

    A server on the Internet where you can download the package from.

  10. 10.

    Though the browser opens, the documentation is in the computer, not on the Internet.

  11. 11.

    A temporary space to save information and assign a name.

  12. 12.

    See next section to find out what the $ symbol is for.

  13. 13.

    It requires Java in the Operating System, and package RJava in R.

  14. 14.

    Type ?matrix to see the documentation.

  15. 15.

    http://www.rcommander.com/.

  16. 16.

    http://rkward.sourceforge.net/.

  17. 17.

    http://www.rforge.net/JGR/.

  18. 18.

    http://www.sciviews.org/SciViews-R/.

  19. 19.

    http://www.rstudio.org/.

  20. 20.

    http://www.walware.de/goto/statet.

  21. 21.

    There is a very good post explaining all the processes at http://www.r-bloggers.com/getting-started-with-sweave-r-latex-eclipse-statet-texlipse/.

  22. 22.

    http://www.openanalytics.eu.

References

  1. Chambers, J. M. (2008). Software for data analysis. Programming with R. Statistics and computing. Berlin: Springer.

    Google Scholar 

  2. Crawley, M. J. (2007). The R Book. UK: Wiley.

    Google Scholar 

  3. Faraway, J. J. (2002). Practical regression and anova using r. http://cran.r-project.org/doc/contrib/Faraway-PRA.pdf. Accessed 01.08.2011.

  4. Jakir, B. (2011). Introduction to statistical thinking (with r, without calculus). http://pluto.huji.ac.il/~msby/StatThink/index.html. Accessed 01.08.2011.

  5. Kerns, G. J. (2010). Introduction to probability and statistics using r. http://ipsur.r-forge.r-project.org/book/index.html. Accessed 01.08.2011.

  6. Leisch, F. (2002). Sweave: Dynamic generation of statistical reports using literate data analysis. In W. Härdle & B. Rönz (Eds.), Compstat 2002—Proceedings In Computational Statistics (pp. 575–580). Heidelberg: Physica Verlag. http://www.stat.uni-muenchen.de/~leisch/Sweave, ISBN 3-7908-1517-9.

  7. Maindonald, J. H. (2008). Using r for data analysis and graphics. Introduction, code and commentary. http://cran.r-project.org/doc/contrib/usingR.pdf. Accessed 01.08.2011

  8. Murrell, P. (2009). Introduction to data technologies. Series in computer science and data analysis. Boca Raton: CRC Press. http://www.stat.auckland.ac.nz/~paul/ItDT/.

  9. Murrell, P. (2011). R graphics (2nd ed.). Boca Raton: Chapman & Hall/CRC.

    Google Scholar 

  10. R Development Core Team (2011). R: A Language and Environment for Statistical Computing, R Foundation for Statistical Computing, Vienna, Austria. http://www.R-project.org/, ISBN 3-900051-07-0.

  11. Sarkar, D. (2008). Lattice: Multivariate data visualization with R. New York: Springer. http://lmdvr.r-forge.r-project.org, ISBN 978-0-387-75968-5.

  12. Venables, W., & Ripley, B. (2002). Modern applied statistics with S. Statistics and computing. New York: Springer.

    Google Scholar 

  13. Wahlbrink, S. (2012). Statet: Eclipse based ide for r. http://www.walware.de/goto/statet. Retrieved 16.01.2012.

  14. Wickham, H. (2009). ggplot2: Elegant graphics for data analysis. Use R!. New York: Springer.

    Google Scholar 

  15. Zuur, A., Ieno, E., & Meesters, E. (2009). A beginner’s guide to R. Use R!. New York: Springer.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer Science+Business Media New York

About this chapter

Cite this chapter

Cano, E.L., Moguerza, J.M., Redchuk, A. (2012). R from the Beginning. In: Six Sigma with R. Use R!, vol 36. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-3652-2_2

Download citation

Publish with us

Policies and ethics