the choice_c method is intended to have the same behaviour as choice (which creates a widget in the graphical interface) but from the command line.
# S4 method for ref_timestep_daily
choice_c(object, datedebut, datefin)
An S4 object of class ref_timestep_daily-class with date selected
An object of class ref_timestep_daily-class
A character (format '15/01/1996'
or '1996-01-15'
or '15-01-1996'
), or POSIXct object
A character
Cedric Briand cedric.briand@eptb-vilaine.fr
if (FALSE) {
object=new('ref_dc')
object<-charge(object)
choice_c(object=object,datedebut='2012-01-01',datefin='2013-01-01')
}
Run the code above in your browser using DataLab