[R] Save results

stvienna wiener stvienna at gmail.com
Thu Jul 16 12:08:37 CEST 2009


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 <narillosdesantos at 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 at 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.
>




More information about the R-help mailing list