Learn R Programming

hdf5r (version 1.3.11)

are_args_scalar: Can arguments be interpreted as a scalar?

Description

Can arguments be interpreted as a scalar?

Usage

are_args_scalar(args)

Value

Logical if the arguments can be interpreted as a scalar

Arguments

args

The arguments to check

Author

Holger Hoefling

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.