getDimension: Gets number of elements in a Basis

View source: R/classes.R

getDimensionR Documentation

Gets number of elements in a Basis

Description

Returns the dimension of an object.

Usage

getDimension(x, ...)

## S3 method for class 'BayesSpaceBasis'
getDimension(x, ...)

## S3 method for class 'BDataSplines'
getDimension(x, ...)

## S3 method for class 'matrix'
getDimension(x, ...)

## S3 method for class 'numeric'
getDimension(x, ...)

Arguments

x

the object

...

futher unused arguments for generic use

Value

an integer giving the number of dimensions of the object

Methods (by class)

  • getDimension(BayesSpaceBasis): returns number of elements in the basis

  • getDimension(BDataSplines): returns number of elements in the basis

  • getDimension(matrix): method for matrix returns number of columns

  • getDimension(numeric): method for numeric returns number of elements

Examples

getDimension(1:3)
getDimension(matrix(rnorm(10),ncol=2))
getDimension(B2N01Basis5)


DistributionalDDA documentation built on Oct. 20, 2026, 5:06 p.m.