[R] Odp: Save results

Petr PIKAL petr.pikal at precheza.cz
Thu Jul 16 12:14:07 CEST 2009


Hi

r-help-bounces at r-project.org napsal dne 16.07.2009 11:31:25:

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

write.table(tab, "clipboard", sep = "\t", row.names = F)
to paste to spreadsheet through clipboard
or
write.table(tab, "Z.txt", sep = "\t", row.names = F)
to write to file.

see ?write.table

Regards
Petr


> 
> 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