MatrixPaste | R Documentation |
Combining columns of a matrix
MatrixPaste(x, sep = "_", forceCharacter = FALSE, stringEmpty = " ")
MatrixPaste1(x, stringEmpty = "1")
x |
Matrix or vector |
sep |
String used to combine columns |
forceCharacter |
When FALSE single column input will keep to original class in output. |
stringEmpty |
String used when input is empty (can be set to NULL) |
Each row in input will be combined to a single string using sep.
Character vector or possibly same vector as input
Øyvind Langsrud
## Not run:
MatrixPaste(matrix(1:12,3,4))
MatrixPaste(1:5)
MatrixPaste(1:5, forceCharacter=TRUE)
MatrixPaste(matrix(integer(0),3,0))
MatrixPaste(NULL)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.