stacomiR (version 0.5.3.1)

charge,ref_choice-method: Loading method for Rechoice referential objects

Description

Loading method for Rechoice referential objects

Usage

# S4 method for ref_choice
charge(object, vecteur, label, selected)

Arguments

object

An object of class ref_choice

vecteur

A vector of name, see example code.

label

Labels for the choices

selected

An integer indicating which object is selected at launch

Value

An S4 object of class ref_choice

See Also

Other referential.objects: ref_checkbox-class, ref_choice-class, ref_coe-class, ref_dc-class, ref_df-class, ref_horodate-class, ref_list-class, ref_par-class, ref_parqual-class, ref_parquan-class, ref_period-class, ref_stage-class, ref_taxa-class, ref_year-class

Examples

Run this code
# NOT RUN {
object=new("ref_choice")
charge(object,vecteur=c("oui","non"),label="essai",selected=as.integer(1))
# }

Run the code above in your browser using DataCamp Workspace