Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

kRp.hyphen-methods

Getter/setter methods for sylly objects


Description

These methods should be used to get or set values of hyphenated text objects generated by functions like hyphen().

Usage

describe(obj, ...)

## S4 method for signature 'kRp.hyphen'
describe(obj)

describe(obj, ...) <- value

## S4 replacement method for signature 'kRp.hyphen'
describe(obj, ...) <- value

language(obj)

## S4 method for signature 'kRp.hyphen'
language(obj)

language(obj) <- value

## S4 replacement method for signature 'kRp.hyphen'
language(obj) <- value

hyphenText(obj)

## S4 method for signature 'kRp.hyphen'
hyphenText(obj)

hyphenText(obj) <- value

## S4 replacement method for signature 'kRp.hyphen'
hyphenText(obj) <- value

## S4 method for signature 'kRp.hyphen'
x[i, j]

## S4 replacement method for signature 'kRp.hyphen'
x[i, j] <- value

## S4 method for signature 'kRp.hyphen'
x[[i]]

## S4 replacement method for signature 'kRp.hyphen'
x[[i]] <- value

Arguments

obj

An object of class kRp.hyphen.

...

Additional arguments as defined by respective methods.

value

A value to set.

x

An object of class kRp.hyphen.

i

Row index.

j

Column index.

Details

  • describe() returns the desc slot.

  • language() returns the lang slot.

  • hyphenText() returns the hyphen slot from objects of class kRp.hyphen.

  • [/[[ Can be used as a shortcut to index the results of hyphenText().

Examples

## Not run: 
hyphenText(hyphenated.txt)

## End(Not run)

sylly

Hyphenation and Syllable Counting for Text Analysis

v0.1-6
GPL (>= 3)
Authors
Meik Michalke [aut, cre]
Initial release
2020-09-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.