# R: Local functions

### From MathWiki

[edit]

## Local functions

The following is a collection of R scripts that contain functions created locally.

- source(http://www.math.yorku.ca/~georges/R/fun.R) will load the latest version of a collection of utility function written by Georges Monette
- source(http://www.math.yorku.ca/~georges/R/Plot3d.R) will load the latest version of a still very rough collection of function to visualize regression fits in 3D.
- The Spring 2006 version of fun.R can be found at R: coursefun.R. It is a listing of functions to support PSYC 6140 and MATH 6630 in 2005-06. The R script for these functions can be obtained at the URL http://www.math.yorku.ca/~georges/R/coursefun.R.

Note that the files above can be downloaded to your computer so they can be used when working offline:

> download.file("http://www.math.yorku.ca/~georges/R/coursefun.R","c:/R/coursefun.R")

which can then be sourced with

> source("c:/R/coursefun.R")

Please post any changes or corrections to these functions in the discussion tab for this page.