Learn R Programming

fBasics (version 4021.93)

gridVector: Grid vector coordinates

Description

Creates rectangular grid coordinates from two vectors.

Usage

gridVector(x, y = NULL)

Value

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

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.

See Also

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