Skip to contents

Conversion between grid square codes and coordinates (longitude and latitude)

Usage

coords_to_grid(X, Y, grid_size)

grid_to_coords(grid, center = TRUE)

Arguments

X

A numeric vector of longitude.

Y

A numeric vector of latitude.

grid_size

A grid size.

grid

A grid class vector.

center

Should the center point of the grid be returned? Otherwise the end points will be returned. TRUE by default.

Value

coords_to_grid() returns a grid vector.

grid_to_coords() returns a tbl_df.