Here is the new code.
library("spCCA")
a=c(-0.3200379, -0.7138482, -0.8628071, -0.3220143, -0.7079053, -0.9425601, -0.5555740, -0.6663740
,-0.3187421, -0.6880427, -0.8462656, -0.3896728, -0.6960597, -0.8978755, -0.6301385, -0.6601400
,-0.3155027, -0.6688058, -0.8533548, -0.3591386, -0.6960597, -0.9299319, -0.5860085, -0.6705301
,-0.3232774, -0.7035260, -0.8423271, -0.3876957, -0.6207557, -0.9066182, -0.6057909, -0.6466329
,-0.3009251, -0.7082179, -0.8407517, -0.3433223, -0.5564513, -0.8852473, -0.4992702, -0.6393599)
otu=matrix(as.matrix(a),ncol=8,byrow = T)
b=c(-0.25689597, -0.06583109, -0.3033692, -0.3399333, -0.7319339, -0.9358452, -0.2598252, -0.5081042, 0.3327363
,1.23534007, 0.05640615, -0.1568638, -0.7552671, -0.5885719, -0.7014474, -1.2953496, 1.0138803, -0.3383102
,0.04242789, -0.93063372, -0.5611901, -0.7552671, -0.1826920, -0.9036287, -0.8488069, -0.1787369, -0.9554043
,-1.05511977, -0.93063372, -0.1299876, -0.7552671, 0.9990045, -0.9358452, 1.7862043, -0.3545300, -0.9554043
,0.93774108, 1.68284446, 0.2460916, 0.5018554, -0.1561209, 1.0407578, 0.9984070, 0.3147964, 1.3159508
,2.4942030 ,0.8819917 ,-0.4450216 ,-0.8208717 ,3.1181910)
met=matrix(as.matrix(b),nrow=5,byrow = T)
c=c( -1.0640955 , -0.6968215 , -0.7317029
, 0.9329057 , -0.6968215 , 1.3566992
, -1.0640955 , -0.6968215 , -0.7317029
,-1.0640955 , -0.6968215 , -0.7317029
,-1.0640955 , 1.4246128 , -0.7317029)
zz=matrix(as.matrix(c),nrow=5,byrow = T)
getCCA3(otu,met,zz)
My output is blank still.
$`cc3.weight.x`
[1,]
[2,]
[3,]
[4,]
[5,]
[6,]
[7,]
[8,]
$cc3.weight.y
[1,]
[2,]
[3,]
[4,]
[5,]
[6,]
[7,]
[8,]
[9,]
[10,]
$cc3.weight.z
[1,]
[2,]
[3,]
$cc3.CV.x
[1,]
[2,]
[3,]
[4,]
[5,]
$cc3.CV.y
[1,]
[2,]
[3,]
[4,]
[5,]
$cc3.CV.z
[1,]
[2,]
[3,]
[4,]
[5,]
$corr
NULL
$lambda
[1,]
[2,]
[3,]
$num.CV
[1] 10