Gets the dimensions of each parameter of an object.

# S3 method for class 'nlist'
pdims(x, ...)

Arguments

x

An object.

...

Other arguments passed to methods.

Value

A named list of integer vectors of the dimensions of each parameter.

See also

Other dimensions: dims(), ndims(), npdims()

Examples

pdims(nlist(x = 1:3))
#> $x
#> [1] 3
#> 
pdims(nlist(y = 3, zz = matrix(2:5, 2)))
#> $y
#> [1] 1
#> 
#> $zz
#> [1] 2 2
#>