Hi Joann, I am not sure if it will help, but there is a post I wrote some time ago: http://www.r-statistics.com/2010/05/exporting-r-output-to-ms-word-with-r2wd-an-example-session/
Please give it a look and see if that might help you figure out the problem. Best, Tal ----------------Contact Details:------------------------------------------------------- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---------------------------------------------------------------------------------------------- On Wed, Dec 21, 2011 at 6:17 PM, Joann Zhuo <zhuolan_...@hotmail.com> wrote: > Hi All, > > I am trying to use the wdTable() function within R2wd package to send a > dataframe to MS-word. However, there is a problem with the tables that are > generated by R. For some reason the header row of the table also contains > all the data. You can see it by dragging the bottom border of the table > down to make the row wider. For example, the data named 'bod' should look > like as: > Time demand > 1 1 8.3 > 2 2 10.3 > > However, if I use wdTable(bod), the output looks like > > Time > demand > > 1 > 1 > 8.3 > > 2 > 2 > 10.3 > > Time demand > 1 1 8.3 > 2 2 10.3 > > It means that the first cell of the table contains all values in the > dataframe. Can anybody help me to solve this problem? > > Thanks, > Joann > > -- > View this message in context: > http://r.789695.n4.nabble.com/Using-wdTable-within-R2wd-package-tp4222258p4222258.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@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. > [[alternative HTML version deleted]] ______________________________________________ R-help@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.