Learn R Programming

remote (version 1.2.1)

writeEot: Write Eot* objects to disk

Description

Write Eot* objects to disk. This is merely a wrapper around writeRaster so see respective help section for details.

Usage

"writeEot"(x, path.out = ".", prefix = "remote", overwrite = TRUE, ...)
"writeEot"(x, path.out = ".", prefix, ...)

Arguments

x
an Eot* object
path.out
the path to the folder to write the files to
prefix
a prefix to be added to the file names (see Details)
overwrite
see writeRaster. Defaults to TRUE in writeEot
...
further arguments passed to writeRaster

Methods (by class)

  • EotStack: EotStack

Details

writeEot will write the results of either an EotMode or an EotStack to disk. For each mode the following files will be written:

  • pred_r - the RasterLayer of the correlation coefficients between the base point and each pixel of the predictor domain
  • pred_rsq - as above but for the coefficient of determination
  • pred_rsq_sums - as above but for the sums of coefficient of determination
  • pred_int - the RasterLayer of the intercept of the regression equation for each pixel of the predictor domain
  • pred_slp - same as above but for the slope of the regression equation for each pixel of the predictor domain
  • pred_p - the RasterLayer of the significance (p-value) of the the regression equation for each pixel of the predictor domain
  • pred_resid - the RasterBrick of the reduced data for the predictor domain

Apart from pred_rsq_sums, all these files are also created for the response domain as resp_*. These will be pasted together with the prefix & the respective mode so that the file names will look like, e.g.:

prefix_mode_n_pred_r.grd

for the RasterLayer of the predictor correlation coefficient of mode n using the standard raster file type (.grd).

See Also

writeRaster

Examples

Run this code
data(vdendool)

nh_modes <- eot(x = vdendool, y = NULL, n = 2, 
                standardised = FALSE, 
                verbose = TRUE)

## write the complete EotStack
writeEot(nh_modes, prefix = "vdendool")

## write only one EotMode
writeEot(nh_modes[[2]], prefix = "vdendool")

Run the code above in your browser using DataLab