# Some useful R scripts

#### Convert GB and Irish grid references to and from eastings and northings

os2eastnorth.R: A function that converts from a grid reference to eastings and northings

eastnorth2os.R: A function that converts from eastings and northings to a grid reference

The R package rnbn also has a function gridCoords() with similar functionality to os2eastnorth.R.

#### FRESCALO in R

frescalo_parallel.R: This function implements Mark Hill's FRESCALO in R. The original program was written in FORTRAN. An R wrapper for the FORTRAN program is provided by the frescalo() function in the sparta package.