Learn R Programming

hdf5r (version 1.3.3)

are_args_scalar: Can arguments be interpreted as a scalar?

Description

Can arguments be interpreted as a scalar?

Usage

are_args_scalar(args)

Arguments

args

The arguments to check

Value

Logical if the arguments can be interpreted as a scalar

Details

Check if there is only one argument and if it is either empty of of length 1 with value 1, i.e. can be interpreted as a scalar.