Learn R Programming

riskyr (version 0.1.0)

txt: List current values of basic text elements.

Description

txt is initialized to a list of named elements to define all titles and labels corresponding to the current scenario and used throughout the riskyr package.

Usage

txt

Arguments

Format

An object of class list of length 16.

Details

All textual elements that specify titles and details of the current scenario are stored as named elements (of type character) in a list txt. To change an element, assign a new character object to an existing name.

txt currently contains the following text labels:

  1. scen.lbl The current scenario title (sometimes in Title Caps).

  2. scen.txt A longer text description of the current scenario (which may extend over several lines).

  3. scen.src The source information for the current scenario.

  4. scen.apa The source information in APA format.

  5. scen.lng The language of the current scenario (as character code). Options: "en"...English, "de"... German.

  6. popu.lbl A brief description of the current target population popu or sample.

  7. cond.lbl A name for the condition or feature (e.g., some disease) currently considered.

  8. cond.true.lbl A label for the presence of the current condition or cond.true cases (the condition's true state of TRUE).

  9. cond.false.lbl A label for the absence of the current condition or cond.false cases (the condition's true state of FALSE).

  10. dec.lbl A name for the decision or judgment (e.g., some diagnostic test) currently made.

  11. dec.pos.lbl A label for positive decisions or dec.pos cases (e.g., predicting the presence of the condition).

  12. dec.neg.lbl A label for negative decisions or dec.neg cases (e.g., predicting the absence of the condition).

  13. hi.lbl A label for hits or true positives hi (i.e., correct decisions of the presence of the condition, when the condition is actually present).

  14. mi.lbl A label for misses or false negatives mi (i.e., incorrect decisions of the absence of the condition when the condition is actually present).

  15. fa.lbl A label for false alarms or false positives fa (i.e., incorrect decisions of the presence of the condition when the condition is actually absent).

  16. cr.lbl A label for correct rejections or true negatives cr (i.e., a correct decision of the absence of the condition, when the condition is actually absent).

See Also

init_txt initializes text information; num contains basic numeric parameters; init_num initializes basic numeric parameters; pal contains current color information; init_pal initializes color information; freq contains current frequency information; comp_freq computes current frequency information; prob contains current probability information; comp_prob computes current probability information.

Other lists containing current scenario information: accu, freq, num, pal, prob

Examples

Run this code
# NOT RUN {
txt           # => show  all current names and elements
txt$scen.lbl  # => show the current scenario label (e.g., used in plot titles)
txt$scen.lbl <- "My favorite example"  # => set a new scenario title


# }

Run the code above in your browser using DataLab