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

choice_c,ref_dc-methodR Documentation

Command line interface to select a counting device

Description

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. 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 signature 'ref_dc'
choice_c(object, dc)

Arguments

object

an object of class ref_dc

dc

a character vector of dc chosen

Value

An object of class ref_dc with dc selected

Author(s)

Cedric Briand cedric.briand@eptb-vilaine.fr

Examples

## 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)

## End(Not run)

stacomiR documentation built on May 29, 2024, 10:41 a.m.