我正在与以下数据进行关联:
datacor
A tibble: 213 x 3
Prop_coord Prop_assoc PPT
<dbl> <dbl> <dbl>
1 0.474 0.211 92
2 0.343 0.343 85
3 0.385 0.308 83
4 0.714 0 92
5 0.432 0.273 73
6 0.481 0.148 92
7 0.455 0.273 96
8 0.605 0.184 88
9 0.412 0.235 98
10 0.5 0.318 94
# … with 203 more rowscor.test运行良好,但当我试图比较相关性时,它显示了以下错误:
> cocor(~ Prop_coord+PPT | Prop_assoc+PPT, datacor)
Error in cocor(~Prop_coord + PPT | Prop_assoc + PPT, datacor) :
The variable 'PPT' must be numeric我该怎么办?
发布于 2020-08-16 18:20:49
为了保持这里的记录,其他地方的人帮了我这个忙,问题是cocor似乎没有和tibbles一起工作。所以当我用data.frame读取我的数据时,它工作得很好。
https://stackoverflow.com/questions/63427900
复制相似问题