Displaying 2 results from an estimated 2 matches for "m_r_20100718_winterm_spec_vegan".
2010 Jul 17
1
data.frame required for cca in ade4
Dear List,
I tried to conduct cca using csv data but failed.
The message said that data.frame is required.
Please kindly share how to convert a csv-imported file to a data.frame.
Thank you.
Elaine
code
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)...
2010 Jul 17
1
cca in ade4
...used spec and envi for cca in ade4. (both are data.frame)
However, there is a message telling that
error in if (nf > rank) nf <- rank R
missing value in TRUE/FALSE
Please kindly help how to modify the code below.
Thank you.
Elaine
code
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, envi, scan=TRUE)
[[alternative HTML version deleted]]