Tests whether the point (or extent) pt falls entirely within the extent of a raster ras, returning TRUE or FALSE.

in_extent(pt, so)

Arguments

pt

is a coordinate vector or extent class object

so

is a spatial object

Value

TRUE if pt is within extent of ras, else FALSE