to.char.matrix | R Documentation |
converts into a vector of strings into a matrix of single characters
to.char.matrix(str, drop = FALSE)
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.