readasciigrid: Function to read an ASCII grid

View source: R/readasciigrid.R

readasciigridR Documentation

Function to read an ASCII grid

Description

This function reads an ASCII grid from disk and returns a grid object.

Usage

readasciigrid(path, as.matrix = FALSE)

Arguments

path

The path to a ASCII grid on disk. Relative paths are interpreted relative to the current working directory.

as.matrix

if as.matrix is set to TRUE the return value will be a simple matrix (not a grid).

Value

An object of class grid

Author(s)

Ethan Plunkett

See Also

writeasciigrid for writing ASCII grids. readasciigridheader for reading just the header information.

Examples

#

ethanplunkett/gridprocess documentation built on Feb. 1, 2024, 2:24 a.m.