cran / IETD

:exclamation: This is a read-only mirror of the CRAN R package repository. IETD — Inter-Event Time Definition
1 stars 0 forks source link

Error in drawre(): Arguments imply differing number of rows: 2, 0 #1

Open hrdawson opened 1 month ago

hrdawson commented 1 month ago

Hello,

Thanks for the very helpful package. I've been successfully using it to process my data, except the data from one site. I'm not sure why this site in particular is going wrong (I subset it from the same object as the other sites that I've successfully processed).

A subset of my data and my code:

Date = structure(c(1501950600, 1501952400, 1501954200, 1501956000, 1501957800, 
            1501959600, 1501961400, 1501963200, 1501965000, 1501966800, 1501968600, 
            1501970400, 1501972200, 1501974000, 1501975800), tzone = "UTC", class = c("POSIXct", 
                                                                                      "POSIXt"))
Rainfall.depth = c(0, 0, 0, 0, 0, 2.513, 12.566, 22.117, 24.127, 14.074, 2.011, 
               0, 0, 0.503, 0)

input_data = data.frame(Date, Rainfall.depth)

output_re = drawre(input_data, 1)

Which returns the error message of

Error in data.frame(seq(1, length(Rp[SdateEvent, 1])), Rp[SdateEvent,  : 
  arguments imply differing number of rows: 2, 0

Any ideas what might be going wrong here?

gaborcsardi commented 1 month ago

Hi, this is a read only mirror of CRAN, please see the package authors in the DESCRIPTION file. Look for Maintainer, BugReports and URL. Thanks!