dimfalk / kostra2010R

R interface for KOSTRA-DWD-2010R dataset
GNU General Public License v3.0
2 stars 0 forks source link

`calc_designstorm(d = 5)` fails #28

Closed dimfalk closed 2 years ago

dimfalk commented 2 years ago

e.g. calc_designstorm(stats, d = 5, tn = 50, type = "EulerII")

Error in Ops.data.frame(data[2:length(d_pos), -1:-3], data[1:(length(d_pos) - : 
‘-’ ist nur für Dataframes gleicher Größe definiert

traceback:

Ops.data.frame(data[2:length(d_pos), -1:-3], data[1:(length(d_pos) - 
1), -1:-3]) at calc_designstorm.R#54

probably because of length() == 1 causing i+1 to fail.