fvcom_index: Retrieve the index closest to the specified value(s) for 1-d...

View source: R/nc.R

fvcom_indexR Documentation

Retrieve the index closest to the specified value(s) for 1-d dimensions.

Description

Retrieve the index closest to the specified value(s) for 1-d dimensions.

Usage

fvcom_index(x, vals = 0, what = c("time")[1])

Arguments

x

FVCOM ncdf4 object

vals

numeric or POSIXct, one or more values to convert to indices

what

character, one of the objects one-dimension names

Value

vector of indices closest to the specifed val - one for each val


BigelowLab/fvcom documentation built on Nov. 8, 2024, 2:24 p.m.