Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

stacomiR (version 0.6.0)

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

Value

object An object of class ref_year-class with year selected

Examples

Run this code
# 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 DataLab