toCharArray.String: Converts this string to a vector of characters

Description Usage Value Author(s) See Also Examples

Description

Converts this string to a vector of characters.

Usage

1
2
## S3 method for class 'String'
toCharArray(this, ...)

Value

Returns the vector of characters.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

*getBytes()

Examples

1
2
3
  s <- String("Hello world!")
  toCharArray(s)  # c("H","e","l","l","o"," ","w","o","r","l","d","!")
  toCharArray("Hello world!")

HenrikBengtsson/R.lang documentation built on May 8, 2019, 7:50 p.m.