Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

RFpointsDataFrame-class

Class RFpointsDataFrame


Description

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

Usage

## S4 method for signature '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.

Slots

data:

object of class data.frame, containing attribute data

coords:

n-times-1 matrix of coordinates (each row is a point)

.RFparams:

list of 2; .RFparams$n is the number of repetitions of the random field contained in the data slot, .RFparams$vdim gives the dimension of the values of the random field, equals 1 in most cases

Methods

plot

signature(obj = "RFpointsDataFrame"): generates nice plots of the random field; if space-time-dim2, a two-dimensional subspace can be selected using the argument MARGIN; to get different slices in a third direction, the argument MARGIN.slices can be used; for more details see plot-method or type method?plot("RFpointsDataFrame").

show

signature(x = "RFpointsDataFrame"): uses the show-method for class SpatialPointsDataFrame.

print

signature(x = "RFpointsDataFrame"): identical to show-method

RFspDataFrame2conventional

signature(obj = "RFpointsDataFrame"): conversion to a list of non-sp-package based objects; the data-slot is converted to an array of dimension [1*(vdim>1) + space-time-dimension + 1*(n>1)]

coordinates

signature(x = "RFpointsDataFrame"): returns the coordinates

[

signature(x = "RFpointsDataFrame"): selects columns of data-slot; returns an object of class RFpointsDataFrame.

[<-

signature(x = "RFpointsDataFrame"): replaces columns of data-slot; returns an object of class RFpointsDataFrame.

as

signature(x = "RFpointsDataFrame"): converts into other formats, only implemented for target class RFgridDataFrame

cbind

signature(...): if arguments have identical topology, combine their attribute values

range

signature(x = "RFpointsDataFrame"): returns the range

hist

signature(x = "RFpointsDataFrame"): plots histogram

as.matrix

signature(x = "RFpointsDataFrame"): converts data-slot to matrix

as.array

signature(x = "RFpointsDataFrame"): converts data-slot to array

as.vector

signature(x = "RFpointsDataFrame"): converts data-slot to vector

as.data.frame

signature(x = "RFpointsDataFrame"): converts data-slot and coordinates to a data.frame

Details

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

Author(s)

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

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))
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)

RandomFields

Simulation and Analysis of Random Fields

v3.3.10
GPL (>= 3)
Authors
Martin Schlather [aut, cre], Alexander Malinowski [aut], Marco Oesting [aut], Daphne Boecker [aut], Kirstin Strokorb [aut], Sebastian Engelke [aut], Johannes Martini [aut], Felix Ballani [aut], Olga Moreva [aut], Jonas Auel[ctr], Peter Menck [ctr], Sebastian Gross [ctr], Ulrike Ober [ctb], Paulo Ribeiro [ctb], Brian D. Ripley [ctb], Richard Singleton [ctb], Ben Pfaff [ctb], R Core Team [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.