stacomiR (version 0.5.4.2)

choice_c,ref_year-method: 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 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

Examples

Run this code
# NOT RUN {
 
# }
# 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)
# }

Run the code above in your browser using DataCamp Workspace