geoexpand: expands a grid to a dataframe.

Description Usage Arguments Value Side Effects See Also Examples

View source: R/geoexpand.R

Description

Expands a grid to a dataframe simular to expand.grid.

Usage

1

Arguments

grid

The grid to be expanded, a list containing vectors \$lat and \$lon.

Value

A dataframe of the grid.

Side Effects

None.

See Also

expand.grid.

Examples

1
2
3
4
5
6
7
grd <- list(lat=seq(63,67,length=30),lon=seq(-28,-10,length=50))
       # a list with length(lat) = 30 and length(lon) = 50

       grd1<- geoexpand(grd)
       # a 30 by 50 dataframe made.

       # See also examples in geocontour.

geo documentation built on May 29, 2017, 5:36 p.m.