choice_c-ref_year-method: choice_c method for ref_year referential from the command...

choice_c,ref_year-methodR Documentation

choice_c method for ref_year referential from the command line

Description

The choice_c method will issue a warning if the year is not present in the database Allows the selection of year and the assignment in environment envir_stacomi

Usage

## S4 method for signature 'ref_year'
choice_c(
  object,
  annee,
  nomassign = "ref_year",
  funoutlabel = gettext("Year selected\n", domain = "R-stacomiR"),
  silent = FALSE
)

Arguments

object

An object of class ref_year-class

annee

The year to select, either as a character or as a numeric

nomassign

The name to be assigned in envir_stacomi

funoutlabel

The label that appears in funout

silent

Stops messages from being displayed if silent=TRUE, default FALSE

Value

object An object of class ref_year-class with year selected

Author(s)

Cedric Briand cedric.briand@eptb-vilaine.fr

Examples

## Not run: 
object=new("ref_year")
object<-charge(object)
win=gwindow(title="test ref_year")
group=ggroup(container=win,horizontal=FALSE)
choice(object,nomassign="ref_year",funoutlabel="essai",titleFrame="essai ref_year",preselect=1)
dispose(win)

## End(Not run)

stacomiR documentation built on July 18, 2022, 5:09 p.m.