tensorA (version 0.36.2.1)

ftable.tensor: Pretty printing of tensors

Description

Returns the tensor as (flat) ftable, providing a pretty output.

Usage

# S3 method for tensor
ftable(x,...)

Value

an ftable containing the same data as the tensor

Arguments

x

the tensor

...

additional arguments to ftable

Author

K. Gerald van den Boogaart

Details

This function is called for a pretty output of a tensor, just try it.

See Also

Examples

Run this code
A <- to.tensor(1:20,c(U=2,V=2,W=5))
A
dim(A)
names(A)
dimnames(A)

ftable(to.tensor(A))
ftable(to.tensor(c(A),dim(A)))

Run the code above in your browser using DataLab