i am very new with R i want to write data of pca but i found an error which is given below how can i resolve this problem kindly help me.
pc <- pca.xyz(xyz[,ca.inds$xyz])
write.table(pc, file="pc.txt", sep="\t")
Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFactors) :
cannot coerce class ""pca"" to a data.frame