
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 of the table is as following if you make the row wider.





 
Time
demand
 
1
1
8.3
 
2
2
10.3
 
 

Time

demand


1

1

8.3


2

2

10.3





 
Time
demand
 
1
1
8.3
 
2
2
10.3
 
3
3
19
 
4
4
16
 
5
5
15.6
 
6
7
19.8
 
 

Time

demand


1

1

8.3


2

2

10.3


3

3

19


4

4

16


5

5

15.6


6

7

19.8
 
Is there a way to fix this kind of problem? Thank you very much!
 
Joann
 
  		 	   		  
	[[alternative HTML version deleted]]

