'PDSI Package: Not compatible with requested type: [type=character; target=double]
I m using the package scPDSI. My data set is this
head(pdsi_data)
yr PE P
1 1981 145.85 44.7
2 1981 143.42 45.64
3 1981 114.76 309.16
4 1981 135.19 58.2
5 1981 126.61 35.57
6 1981 124.12 18.94
When I applied the function pdsi this error appears
pdsi(pdsi_data$P, pdsi_data$PE, start=1981, sc=FALSE)
Fehler in C_pdsi(P, PE, AWC, start, end, cal_start, cal_end, sc, getOption("PDSI.coe.K1.1"), :
Not compatible with requested type: [type=character; target=double].
I would appreciate some help on this matter. Thanks!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
