Learn R Programming

RandomFields (version 3.0.62)

RFsp2conventional: coerce RFsp-class to conventional format

Description

coerce RFsp-class to conventional format

Usage

RFspDataFrame2conventional(obj)

RFspDataFrame2dataArray(obj)

Arguments

obj
object of class RFsp.

Value

See Also

RFspatialGridDataFrame, RFspatialPointsDataFrame

Examples

Run this code
RFoptions(seed=0) ## *ANY* simulation will have the random seed 0; set
##                   RFoptions(seed=NA) to make them all random again

n <- 3
x <- GridTopology(cellcentre.offset=c(0, 0),
 cellsize=c(1, 0.2),
 cells.dim=c(10, 30))
f <- RFsimulate(model=RMexp(), x=x, n=n)
str(f)
str(RFspDataFrame2conventional(f))

FinalizeExample()

Run the code above in your browser using DataLab