Learn R Programming

yaImpute (version 1.0-3)

AsciiGridImpute: Imputes/Predicts data for Ascii Grid maps

Description

AsciiGridImpute finds nearest neighbor reference observations for each point in the input grid maps and outputs maps of selected Y-variables in a set of output grid maps.

AsciiGridPredict applies a predict function to each point in the input grid maps and outputs maps of the prediction(s) in one or more output grid maps (see Details).

One row of the each grid maps is read and processed at a time thereby avoiding the need to build huge objects in R that would be necessary all the rows of all the maps were processed together.

Usage

AsciiGridImpute(object,xfiles,outfiles,xtypes=NULL,ancillaryData=NULL,
                ann=NULL,lon=NULL,lat=NULL,rows=NULL,cols=NULL,
                nodata=NULL,myPredFunc=NULL,...)

AsciiGridPredict(object,xfiles,outfiles,xtypes=NULL,lon=NULL,lat=NULL, rows=NULL,cols=NULL,nodata=NULL,myPredFunc=NULL,...)

Arguments

object
An object of class yai, any other object for which a predict function is defined. See Details.
xfiles
A list of input file names where there is one grid file for each X-variable. List elements must be given the same names as the X-variables they correspond with and there must be one file for
outfiles
One of these two forms: [object Object] xtypes{A list of data types names that corresponds exactly to data type of the maps listed in xfiles. Each value can be one of: "logical", "integer", "numeric",