RandomFields (version 3.1.36)

RFgridDataFrame-class: Class RFgridDataFrame

Description

Class for attributes in one-dimensional space.

Usage

"RFspDataFrame2conventional"(obj, data.frame=FALSE)

Arguments

obj
an RFgridDataFrame object
data.frame
logical. If TRUE a data.frame is returned.

Creating Objects

Objects can be created by using the functions RFgridDataFrame or conventional2RFspDataFrame or by calls of the form as(x, "RFgridDataFrame"), where x is of class RFgridDataFrame.

Slots

Methods

Details

Methods summary and dimensions are defined for the “parent”-class RFsp.

See Also

RFspatialGridDataFrame, which is for point locations in higher dimensional spaces, RFpointsDataFrame-class which is for one-dimensional arbitray locations, RFsp

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

x <- seq(0,10,length=100)
f <- RFsimulate(model=RMgauss(), x=x, n=3)

str(f)
str(RFspDataFrame2conventional(f))
head(coordinates(f))
str(f[2]) ## selects second column of data-slot
all.equal(f, cbind(f,f)[1:3]) ## TRUE

plot(f, nmax=2)


Run the code above in your browser using DataCamp Workspace