Returns the tensor as (flat) ftable, providing a pretty output.
# S3 method for tensor ftable(x,...)
the tensor
additional arguments to ftable
an ftable containing the same data as the tensor
This function is called for a pretty output of a tensor, just try it.
ftable
# 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