as_character {mclm} | R Documentation |
Coerce object to character
Description
This method turns its argument x
, or at least part of the information in it,
into a character vector.
Usage
as_character(x, ...)
## Default S3 method:
as_character(x, ...)
## S3 method for class 're'
as_character(x, ...)
## S3 method for class 'tokens'
as_character(x, ...)
Arguments
x |
Object to coerce to character |
... |
Additional arguments |
Value
Object of class character
Examples
(tks <- tokenize("The old man and the sea."))
as_character(tks) # turn 'tokens' object into character vector
as.character(tks) # alternative approach
as_character(1:10)
as.character(1:10)
regex <- re("(?xi) ^ .*")
as_character(regex) # turn 're' object into character vector
as.character(regex) # alternative approach
[Package mclm version 0.2.7 Index]