Message-ID: <Pine.A41.4.61b.0508190906260.84232@homer10.u.washington.edu>
Date: 2005-08-19T16:07:30Z
From: Thomas Lumley
Subject: Handling of tables in R
In-Reply-To: <OF05FD1F41.C07A8D9F-ONC1257062.002B7B4D-C1257062.002DA673@codan.dk>
On Fri, 19 Aug 2005, Fredrik Thuring wrote:
> I have a few questions concerning reading of tables from R to
> other programs. My main question is if it’s even possible to read a table
> created in R (with the functions data.frame and save) to Excel (or
> maybe SAS) and if so how does one do this? If I just mark the table in R
> and copy-paste to Excel the whole table ends up in one single cell, (of
> course). My goal is to copy the table to Excel (or SAS) in such a
> way that a single observation gets placed in a single cell.
>
People have told you how to do this for Excel. For SAS you might want to
try write.foreign() in the "foreign" package, which writes a text file and
a SAS code file that you can use to read it into SAS.
-thomas