tensorA (version 0.36.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,...)

Arguments

x

the tensor

additional arguments to ftable

Value

an ftable containing the same data as the tensor

Details

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

See Also

ftable

Examples

Run this code
# NOT RUN {
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 DataCamp Workspace