Hi Studio community,
I have a little problem with my data set create in Studio environment.
I juste need after Simper analysis (with vegan) to keep data in csv or txt document. Unfortunately, I have an error message
"Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFactors) :
cannot coerce class ""simper"" to a data.frame" and my simper data are not exploitable for graphical representations after (like marplot, with ggplot2). "
Please find my script here :
library("vegan")
data(dune.env)
data(dune)
(sim=with(dune.env, simper(dune, Management)))
summary(sim)
write.csv(sim, "data.csv")
sim
Thank you for your help