R programs that have been discussed in lab (or in class) are included here.

- Introduction to R
- Introduction to the sp package.
- spIntro.r R code for the Introduction to the sp package.
- sample.r How to draw random samples
- simsample.r Illustration of using simulation to evaluate properties of estimators.
- prediction1.r R code and comments for inv. dist. weighting and trend surfaces.
- prediction2.r R code and comments for ordinary kriging 'by hand'.
- prediction3.r R code and comments for semivariogram estimation and kriging.
- R matrix.pdf Notes on read various data formats into R and working with matrices.