alphabet: Random Letter

Description Usage Arguments Examples

View source: R/alphabet.R

Description

alphabet returns a randomly chosen letter of the alphabet.

Usage

1
alphabet(x = 1)

Arguments

x

The number of randomly selected letters you want returned. Defaulted to 1.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x = 1) 
{
    alpha <- LETTERS[seq(1, 26)]
    bet <- sample(alpha, x)
    return(bet)
  }

ajgarcia27/Alphabetory documentation built on Dec. 18, 2021, 11:28 p.m.