Learn R Programming

spray (version 1.0-26)

as.character: Coerce spray objects to character

Description

Coerces spray objects to a character string or disord character vector.

Usage

# S3 method for spray
as.character(x, ..., split=FALSE)

Arguments

x

spray object

...

Further arguments, currently ignored

split

Boolean with default FALSE meaning to return a length-one character vector, and TRUE meaning to return a disord object with elements being terms, coerced to character

Author

Robin K. S. Hankin

Details

The method uses print_spray_polyform() and as such is sensitive to option sprayvars, but not polyform.

Examples

Run this code
as.character(rspray())
as.character(rspray(),split=TRUE)

Run the code above in your browser using DataLab