sylly (version 0.1-2)

describe: 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 kRp.hyphen describe(obj)

describe(obj) <- value

# S4 method for kRp.hyphen describe(obj) <- value

language(obj)

# S4 method for kRp.hyphen language(obj)

language(obj) <- value

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

hyphenText(obj)

# S4 method for kRp.hyphen hyphenText(obj)

hyphenText(obj) <- value

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

# S4 method for kRp.hyphen [(x, i, j)

# S4 method for kRp.hyphen [(x, i, j) <- value

# S4 method for kRp.hyphen [[(x, i)

# S4 method for kRp.hyphen [[(x, i) <- value

Arguments

obj

An object of class kRp.hyphen.

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

Run this code
# NOT RUN {
hyphenText(hyphenated.txt)
# }

Run the code above in your browser using DataCamp Workspace