fBasics (version 3011.87)

gridVector: Grid Vector Coordinates

Description

Creates from two vectors rectangular grid coordinates..

Usage

gridVector(x, y = NULL)

Arguments

x, y
two numeric vectors of length m and n which span the rectangular grid of size m times n. If y takes the default value, NULL, then y=x.

Value

returns a list with two entries named $X and $Y, giving the coordinates which span the bivariate grid.

See Also

expand.grid.

Examples

Run this code
## gridVector -
   gridVector((0:10)/10) 
   gridVector((0:10)/10, (0:10)/10)

Run the code above in your browser using DataLab