Description Usage Arguments Creating Objects Slots Methods Details Author(s) See Also Examples
Class for attributes in one-dimensional space.
1 2 | ## S4 method for signature 'RFgridDataFrame'
RFspDataFrame2conventional(obj, data.frame=FALSE)
|
obj |
an |
data.frame |
logical. If |
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
.
.RFparams
:list of up to 5 elements;
n is the number
of repetitions of the random field contained in the data
slot
vdim
gives the dimension of the values of
the random
field, equals 1 in most cases
has.variance
indicates whether information on the variance is available,
coordunits
gives the names of the
units for the coordinates
varunits
gives the names of the
units for the variables
data
:object of class data.frame
,
containing attribute data
grid
:object of class GridTopology
.
signature(obj =
"RFgridDataFrame")
: 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("RFgridDataFrame")
signature(x = "RFgridDataFrame")
:
uses the show
-method for class SpatialGridDataFrame
.
signature(x = "RFgridDataFrame")
:
identical to show
-method
signature(obj =
"RFgridDataFrame")
: 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)]
signature(x = "RFgridDataFrame")
:
returns the coordinates
signature(x = "RFgridDataFrame")
: selects
columns of data
-slot; returns an
object of class RFgridDataFrame
.
signature(x = "RFgridDataFrame")
: replaces
columns of data
-slot; returns an
object of class RFgridDataFrame
.
signature(x = "RFgridDataFrame")
:
converts into other formats, only implemented for target class
RFpointsDataFrame
signature(...)
: if arguments have identical
topology, combine their attribute values
signature(x = "RFgridDataFrame")
: returns the range
signature(x = "RFgridDataFrame")
: plots histogram
signature(x = "RFgridDataFrame")
: converts
data
-slot to matrix
signature(x = "RFgridDataFrame")
: converts
data
-slot to array
signature(x = "RFgridDataFrame")
: converts
data
-slot to vector
signature(x = "RFgridDataFrame")
:
converts data
-slot and coordinates to a data.frame
Methods summary
and dimensions
are defined for the “parent”-class
RFsp
.
Alexander Malinowski, \martin
RFspatialGridDataFrame
,
which is for point
locations in higher dimensional spaces,
RFpointsDataFrame-class
which is for one-dimensional
arbitrary locations,
RFsp
1 2 3 4 5 6 7 8 9 10 11 12 13 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.