freegroup (version 1.1-0)

rfree: Random free objects

Description

Creates a vector of random free objects

Usage

rfree(n, size, number = size, powers = seq(from = -size, to = size))

Arguments

n

Length of random vector to generate

size

Maximum length of each element

number

How many distinct letters to sample from

powers

Powers to sample from

Details

The auxiliary arguments specify the general complexity of the returned object with small meaning simpler.

See Also

size

Examples

Run this code
# NOT RUN {
x <- rfree(10,2)
y <- rfree(10,30,26)

rfree(20,2)^alpha(26)

# }

Run the code above in your browser using DataCamp Workspace