Learn R Programming

koRpus (version 0.04-40)

kRp.text.transform: Letter case transformation

Description

Transforms text in koRpus objects token by token.

Usage

kRp.text.transform(txt, scheme, p = 0.5, paste = FALSE)

Arguments

scheme
One of the following character strings:
  • "minor"
{Start each word with a lowercase letter.} "all.minor" {Forces all letters into lowercase.} "major" {Start each word

Value

item

  • p
  • paste

code

scheme="random"

Details

This function is mainly intended to produce text material for experiments.

Examples

Run this code
tagged.text.obj <- freq.analysis("/some/text.txt", corp.freq=my.LCC.data)
kRp.text.transform(tagged.text.obj, scheme="random", paste=TRUE)

Run the code above in your browser using DataLab