Pierre Paradis
2013-Sep-25 02:18 UTC
[R] object not found in a cca analysis with vegan package
I'm a beginner, trying to do a canonical correspondance analysis with the vegan package, but I come up with that : > library(vegan) > abondance.txt <- read.table("C:/Users/abondance.txt",header=T,sep="\t") > abondance <- cca(abondance[,-c(1,2)]~altitude, data=abondance, nhea) Error in model.frame(data = abondance, na.action = function (object, : object 'abondance' not found any ideas ? thanks ! [[alternative HTML version deleted]]
Pascal Oettli
2013-Sep-25 04:04 UTC
[R] object not found in a cca analysis with vegan package
Hello, It is kindly requested to post in plain text. HTML is prohibited. Your data are stored in "abondance.txt", not in "abondance". Hope this helps, Pascal 2013/9/25 Pierre Paradis <exode00@hotmail.com>> I'm a beginner, trying to do a canonical correspondance analysis with the > vegan package, but I come up with that : > library(vegan) > abondance.txt > <- read.table("C:/Users/abondance.txt",header=T,sep="\t") > abondance <- > cca(abondance[,-c(1,2)]~altitude, data=abondance, nhea) Error in > model.frame(data = abondance, na.action = function (object, : object > 'abondance' not found any ideas ? thanks ! > [[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. >-- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan [[alternative HTML version deleted]]