Suppose I have following arbitrary matrix:

> set.seed(1)
> mat <- matrix(rnorm(6), 3, 2)
> mat
           [,1]       [,2]
[1,] -0.6264538  1.5952808
[2,]  0.1836433  0.3295078
[3,] -0.8356286 -0.8204684

Now I want to make a simple object like (character type):

"-0.6264538,1.5952808;0.1836433,0.3295078;-0.8356286,-0.8204684"

I would be really grateful if somebody guide me how to perform that.

Thanks for your time.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to