isScalar function

Checks if Argument is Scalar

Checks if Argument is Scalar

Check if the argument is scalar, i.e. a numeric vector of length 1.

isScalar(x)

Arguments

  • x: any object

Returns

logical

  • Maintainer: Sebastian Meyer
  • License: GPL-2
  • Last published: 2025-02-11