【问题标题】:What's the code to figure out this question when using Rstudio?使用 Rstudio 时解决这个问题的代码是什么? 【发布时间】:2018-10-10 05:52:48 【问题描述】: 有一百个不同的地块,每个地块有两种不同的数据,ECM 和 AM,如图所示。我想分别算出这 100 个图中 AM 与 ECM 的比率,如何方便地解决这个问题?谢谢 【问题讨论】: 标签: r 【解决方案1】: 我不知道我是否理解正确,但是如果您想知道 AM 和 ECM 的数量,只需使用 summary(as.factor(dataframe$E)) AM ECM 10 15 【讨论】: