我正在使用 TraMineR 包。我正在将输出打印到 CSV 文件,如下所示:
write.csv(seqient(sequences.seq), file = "diversity_measures.csv", quote = FALSE, na = "", row.names = TRUE)
write.csv(seqici(sequences.seq), file = "diversity_measures.csv", quote = FALSE, na = "", row.names = TRUE, append= TRUE)
write.csv(seqST(sequences.seq), file = "diversity_measures.csv", quote = FALSE, na = "", row.names = TRUE, append= TRUE)
可以在此处找到 dput(sequences.seq) 对象。
但是,这不会正确附加输出,而是会创建以下错误消息:
In write.csv(seqST(sequences.seq), file = "diversity_measures.csv", :attempt to set 'append' ignored
此外,它只给我最后一个命令的输出,所以它似乎每次都会覆盖文件。
是否可以在单个 CSV 文件中获取所有列,每个列都有一个列名(即熵、复杂性、湍流)