Skip to main content Accessibility help
×
Hostname: page-component-84b7d79bbc-rnpqb Total loading time: 0 Render date: 2024-07-29T18:15:15.973Z Has data issue: false hasContentIssue false

Appendix Introduction to R

Published online by Cambridge University Press:  05 November 2012

Martin Haenggi
Affiliation:
University of Notre Dame, Indiana
Get access

Summary

Overview

R is a software package for statistical computation and graphics. It is free and open-source and very flexible. It implements many modern statistical methods with good graphical support. The core of R is an interpreted computer language which allows branching and looping as well as modular programming using functions. It can be downloaded for different operating systems from the main website http://www.r-project.org/, which also contains links to manuals and documentation. For example, a relatively concise introduction to R is available at http://cran.r-project.org/doc/manuals/R-intro.pdf.

The R language is enhanced by numerous libraries. For the purposes of spatial statistics, the spatstat library has been developed. It supports the following:

  • Creation, manipulation, and plotting of point patterns

  • Exploratory data analysis, including intensity maps, empty space functions, nearest-neighbor distance functions, and K, L, and J functions

  • Model fitting

All figures with point patterns in this book were created using the powerful commands of the spatstat library. To use it, it needs to be loaded after starting R by typing library(spatstat). A demo can be run by demo(spatstat), while typing help(spatstat) provides a help page. An introduction to spatstat is given in Baddeley & Turner (2005), and further documentation is available at www.spatstat.org.

R is equipped with all standard data types, such as scalars, vectors, arrays, and lists. Additional spatstat data types are point patterns and windows. A point pattern records the locations of the points observed in a certain region, and a window is a region in a two-dimensional space representing the “study area.”

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2012

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Appendix Introduction to R
  • Martin Haenggi, University of Notre Dame, Indiana
  • Book: Stochastic Geometry for Wireless Networks
  • Online publication: 05 November 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9781139043816.015
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Appendix Introduction to R
  • Martin Haenggi, University of Notre Dame, Indiana
  • Book: Stochastic Geometry for Wireless Networks
  • Online publication: 05 November 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9781139043816.015
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Appendix Introduction to R
  • Martin Haenggi, University of Notre Dame, Indiana
  • Book: Stochastic Geometry for Wireless Networks
  • Online publication: 05 November 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9781139043816.015
Available formats
×