isdim

Prototype

Arguments

var

A variable of any type and dimensionality.

dimnames

An array of strings of any dimensionality.

Description

For each element in the dimnames list,
isdim returns True if the element is a dimension of
var and False if not. The output of isdim
is a logical array with the same dimensions as dimnames. If
var is not a variable, then a single missing value is
returned.

This function is useful for checking if variable
dimensions are defined in a variable before accessing them.