stacomiR (version 0.5.3)

choice_c,ref_dc-method: Command line interface to select a counting device

Description

the choice_c method is intendedto have the same behaviour as choice (which creates a widget in the graphical interface) but from the command line. The parameters for dc are transformed to integer as the ref_dc only takes integer in the dc slots. The method also loads the stations and ouvrages (dams) associated with the counting device (dc). The values passed to the choice_c method are then checked with the setValidty method. Finally, if an objectreport is passed as a parameter, the method will do a charge_with_filter to select only the taxa present in the counting devices

Usage

# S4 method for ref_dc
choice_c(object, dc)

Arguments

object

an object of class ref_dc

dc

a character vector of dc chosen

Examples

Run this code
# NOT RUN {
win=gwindow()
group=ggroup(container=win,horizontal=FALSE)
object=new("ref_dc")
object<-charge(object)
objectreport=new("report_mig_mult")
choice_c(object=object,objectreport=objectreport,dc=1)
# }

Run the code above in your browser using DataCamp Workspace