Learn R Programming

parafac4microbiome (version 1.1.2)

fac_to_vect: Vectorize Fac object

Description

Vectorize Fac object

Usage

fac_to_vect(Fac)

Value

Vectorized Fac object

Arguments

Fac

Fac object output of parafac.

Examples

Run this code
set.seed(123)
A = array(rnorm(108*2), c(108, 2))
B = array(rnorm(100*2), c(100, 2))
C = array(rnorm(10*2), c(10, 2))
Fac = list(A, B, C)
v = fac_to_vect(Fac)

Run the code above in your browser using DataLab