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) :
  data.frame expected

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to