| as_character | R Documentation |
This method turns its argument x, or at least part of the information in it,
into a character vector.
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, ...)
x |
Object to coerce to character |
... |
Additional arguments |
Object of class character
(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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.