empty: Check Whether a Vector Contains Data

emptyR Documentation

Check Whether a Vector Contains Data

Description

This function provides a check for whether a vector of locations contains any data. This is useful for checking whether a lat/lon pixel doesn't report any data for the deep zone. This is expected if the sea floor at those coordinates is shallower than the maximum depth we set for the shallow zone.

Usage

empty(x)

Arguments

x

A vector of values to check.

Value

TRUE (if only NAs) or FALSE (if any entry is not NA).

See Also

Other NEMO-MEDUSA spatial tools: calculate_depth_share(), calculate_proximity_weight(), get_weights.W(), get_weights(), netcdf_scheme_helpers, scheme_column(), scheme_interp_slice(), scheme_strathE2E(), stratify(), voronoi_grid(), xyindex_to_nindex()


Jack-H-Laverick/nemomedusR documentation built on Dec. 12, 2022, 5:21 a.m.