Re: [R] export data to gnuplot

From: Petr Savicky <savicky_at_praha1.ff.cuni.cz>
Date: Sun, 27 Mar 2011 22:23:00 +0200

On Sun, Mar 27, 2011 at 10:12:38PM +0300, Denis Kazakiewicz wrote:
> Hello
>
> How to export data frame to file which can be used by gnuplot?

Hello:

Try the following

  write.table(dat, file="out.txt", row.names=FALSE, col.names=FALSE, quote=FALSE)

This will save a space delimited file. I am not using gnuplot for a long time, but i think a space delimited file can be used.

Hope this helps.

Petr Savicky.



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. Received on Sun 27 Mar 2011 - 20:28:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 27 Mar 2011 - 21:50:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive