Learn R Programming

epiR (version 2.0.68)

epi.asc: Write matrix to an ASCII raster file

Description

Writes a data frame to an ASCII raster file, suitable for display in a Geographic Information System.

Usage

epi.asc(dat, file, xllcorner, yllcorner, cellsize, na = -9999)

Value

Writes an ASCII raster file (typically with *.asc extension), suitable for display in a Geographic Information System.

Arguments

dat

a matrix with data suitable for plotting using the image function.

file

character string specifying the name and path of the ASCII raster output file.

xllcorner

the easting coordinate corresponding to the lower left hand corner of the matrix.

yllcorner

the northing coordinate corresponding to the lower left hand corner of the matrix.

cellsize

number, defining the size of each matrix cell.

na

scalar, defines null values in the matrix. NAs are converted to this value.