The easiest thing to do is probably to write the data.frame to a
tab-delimited text file using write.table and then read in the written file
like you have done above.  See ?write.table - as I recall there are plenty
of options that will allow you to specify the separator, whether or not to
write headings, etc.

-James



On 11/16/08, Patrick Giraudoux <patrick.giraudoux@univ-fcomte.fr> wrote:
>
> Dear listers,
>
> I am writing a R function to upload waypoints to a GPS Garmin Etrex with
>  gpsbabel. This works quite well reading from a text file as following:
>
> df<-"mytabfile.txt"
> system(paste("gpsbabel -w -i tabsep -f ",df," -o garmin -F com5:",sep=""))
>
> However, I would prefer to upload from a data.frame within R rather than
> reading a tab delimited text file on the disk.
>
> Any idea about how to specify it in the command line (should be trivial,
> but I cannot figure it out) ?
>
> Thanks in advance,
>
> Patrick
>
>
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>
>

	[[alternative HTML version deleted]]


