Learn R Programming

parafac4microbiome (version 1.1.2)

reinflateTensor: Create a tensor out of a set of matrices similar to a component model.

Description

Create a tensor out of a set of matrices similar to a component model.

Usage

reinflateTensor(A, B, C, returnAsTensor = FALSE)

Value

M, an I x J x K tensor.

Arguments

A

I x N matrix corresponding to loadings in the first mode for N components.

B

J x N matrix corresponding to loadings in the second mode for N components.

C

K x N matrix corresponding to loadings in the third mode for N components.

returnAsTensor

Boolean return as rTensor S4 tensor object (default FALSE).

Examples

Run this code
A = rnorm(108)
B = rnorm(100)
C = rnorm(10)
M = reinflateTensor(A,B,C)

Run the code above in your browser using DataLab