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

View source: R/stringtools.R

to.char.matrixR Documentation

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

Description

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

Usage

to.char.matrix(str, drop = FALSE)

Examples

## 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 11, 2022, 4:48 a.m.