Hi Jose,

Have you tried:

Z <- diag(10)
write.csv(Z, file = "mymatrix.csv")

type "?write.csv" to see the options to get a better result with excel.
However you can open the file "mymatrix.csv" with excel
(it is stored in the "My Documents" folder in windows).


Ok, hope that helps.
Next time you can try also a goolge search like "r-help csv".

Regards,
Steve


2009/7/16 Jose Narillos de Santos <narillosdesan...@gmail.com>:
> I imagine I make a function whose results are a Matrix Z
>
> How cn I save in a txt or excel file the result of apply my function?
>
> something similar to save Z.txt.
>
> Thanks in advance.
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>

______________________________________________
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