简体   繁体   中英

how to correct summary.factor error in stable isotope analysis in R

I wanted to analyse my stable isotope data using stable isotope analysis in R (SIAR). When running the model using the command:

model1 <- siarmcmcdirichletv4(data, sources, tef, concdep=0, 500000, 50000)

as advised in the SIAR Manual for Ecologists, I got this message:

Error in Summary.factor(c(1L, 1L, 2L, 2L, 6L, 6L, 7L, 7L, 3L, 3L, 4L,  : max not meaningful for factors.

Can you please advise me how to proceed from here?

SIAR仅适用于数字组名,据我所记得,它们必须从1开始并在数据文件中按顺序运行。

我只是在R中使用SIAR遇到了类似的错误消息。我的问题是由于我的文件另存为.csv而它们需要保存在.txt中这一事实引起的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM