Displaying 2 results from an estimated 2 matches for "winterm_ratio".
2010 Jul 17
2
cca in vegan (formula instead of community matrix data)
...p and thank you in advance.
code
This is vegan 1.17-3
Warning message:
package 'vegan' was built under R version 2.10.1
rm(list=ls())
library(vegan)
datam <-read.csv("c:/migration/M_R_20100707_winterM.csv",header=T,
row.names=1)
dim(datam)
datam[1,]
m.cca <-
cca(datam$WinterM_ratio~datam$topo_mean+datam$coast+datam$prec_max
+datam$temp_min+datam$evi_min, datam)
error in cca.default(d$X, d$Y, d$Z) :
All row sums must be >0 in the community data matrix
[[alternative HTML version deleted]]
2010 Jul 17
1
data.frame required for cca in ade4
...rm(list=ls())
spec <-read.csv("c:/migration/M_R_20100718_winterM_spec_vegan.csv",header=T,
row.names=1)
dim(spec)
spec[1,]
envi <-read.csv("c:/migration/M_R_20100718_winterM_envi_vegan.csv",header=T,
row.names=1)
dim(envi)
envi[1,]
library(ade4)
w.cca <- cca(spec$WinterM_ratio, envi, scan=TRUE)
error in cca(spec$WinterM_ratio, envi, scan = FALSE) :
data.frame expected
[[alternative HTML version deleted]]