Last data update: 2014.03.03

R: Class '"gridList"'. A description of a regular and...
gridList-classR Documentation

Class "gridList". A description of a regular and multidimensional grid.

Description

This object is mainly designed to work with methods that take a set of locations organized on a grid. The object is a list where there are as many components as dimensions and each list component is a vector of values being the grid points in that dimension. It is consistent with the older use of the older grid.list format used in the fields package. This form is somewhat redundant because for an equally spaced grid all one needs is the beginning value, spacing and number of points but it makes it simpler to pass the grid information to functions such as image and contour.

Usage

gridListInfo(gridList)

Arguments

gridList

A gridList object.

Objects from the Class

This object is a list where each component is a vector of grid points in a particular dimension. For example

grid<- structure(list( x= seq( -1,1,,20), y= seq( 0,1,,15)), class= "gridList"

would create this object for a 2d grid with 20 and 15 points over the ranges [-1,1] and [0,1]. The component names ( "x" and "y" in this case) are optional.

The function gridListInfo extracts some summary information that is used to support the summary function for this class.

Methods

LKrigDistance

signature(x1 = "matrix", x2 = "gridList", delta = "numeric"): ...

Author(s)

Doug Nychka

See Also

LKrigDistance and LKrigDistGrid LKrigLatticeCenters

Examples

showClass("gridList")
# a 3-d grid
grid<- structure(
 list( x= seq( -1,1,,20), y= seq( 0,1,,15) ,oneMore = 1:10) ,
 class= "gridList" )

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(LatticeKrig)
Loading required package: spam
Loading required package: grid
Spam version 1.3-0 (2015-10-24) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction 
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.

Attaching package: 'spam'

The following objects are masked from 'package:base':

    backsolve, forwardsolve

Loading required package: fields
Loading required package: maps

 # maps v3.1: updated 'world': all lakes moved to separate new #
 # 'lakes' database. Type '?world' or 'news(package="maps")'.  #


> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/LatticeKrig/gridList-class.Rd_%03d_medium.png", width=480, height=480)
> ### Name: gridList-class
> ### Title: Class '"gridList"'. A description of a regular and
> ###   multidimensional grid.
> ### Aliases: gridList-class gridListInfo gridList
> ### Keywords: classes
> 
> ### ** Examples
> 
> showClass("gridList")
Class "gridList" [package "LatticeKrig"]

No Slots, prototype of class "numeric"
> # a 3-d grid
> grid<- structure(
+  list( x= seq( -1,1,,20), y= seq( 0,1,,15) ,oneMore = 1:10) ,
+  class= "gridList" )
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>