Learn R Programming

RandomFields (version 3.1.12)

RFpointsDataFrame-class: Class RFpointsDataFrame

Description

Class for attributes in one-dimensional space that are not on a grid.

Usage

## S3 method for class 'RFpointsDataFrame':
RFspDataFrame2conventional(obj)

Arguments

obj
an RFspatialPointsDataFrame object

Creating Objects

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

Details

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

See Also

RFspatialPointsDataFrame, which is for point locations in higher dimensional spaces, RFpointsDataFrame-class which is for one-dimensional locations on a grid, 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 <- runif(100)
f <- RFsimulate(model=RMexp(), x=x, n=3)

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

plot(f, nmax=2)
FinalizeExample()

Run the code above in your browser using DataLab