Learn R Programming

biogram (version 1.6.3)

generate_single_unigram: Generate single unigram

Description

Assign randomly generated properties to a single unigram.

Usage

generate_single_unigram(unigram_ranges)

Arguments

unigram_ranges

list of ranges containing respective properties. If named, names are preserved.

See Also

generate_single_unigram is a helper function for generate_unigrams.

Examples

Run this code
# NOT RUN {
generate_single_unigram(list(P1 = c(0, 0.5), 
                             P2 = c(0.2, 0.4),
                             P3 = c(0.5, 1),
                             P4 = c(0, 0)))

# }

Run the code above in your browser using DataLab