to.char.matrix: converts into a vector of strings into a matrix of single...

Description Usage Examples

View source: R/stringtools.R

Description

converts into a vector of strings into a matrix of single characters

Usage

1

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
  str =c("Now that is a nice matrix","but short!")
  mat = to.char.matrix(str)
  mat
  char.matrix.to.str(mat)
  vec = to.char.vector(str,collapse="\n")
  vec
  char.vector.to.str(vec,collapse="\n")

## End(Not run)

skranz/stringtools documentation built on May 26, 2017, 12:16 p.m.