christophsax / tempdisagg

Methods for Temporal Disaggregation and Interpolation of Time Series
http://cran.r-project.org/web/packages/tempdisagg
37 stars 5 forks source link

Better input checks #20

Closed christophsax closed 8 years ago

christophsax commented 9 years ago
christophsax commented 8 years ago

a better error message here:

td(cars ~ 1, to = 1, method = "denton-cholette")

# Error in `diag<-`(`*tmp*`, value = -1) : 
#   only matrix diagonals can be replaced

td(cars ~ 1, to = 1, method = "denton-cholette")

# Error in td(cars ~ 1, to = 1, method = "denton-cholette") : 
#   the left hand side of the formula must be either a time series or numeric.