Hi Max,
htmlTable() creates three-line tables as its default results. But i want to draw all td borders in my tables.
My table using this function is below:
| |
2015 | |
2016 | |
2017 |
| TypeName |
|
mean |
sd |
cv |
|
mean |
sd |
cv |
|
mean |
sd |
cv |
| Type1 |
|
98.73 |
11.02 |
0.11 |
|
101.22 |
10.41 |
0.10 |
|
95.22 |
13.00 |
0.14 |
| Type2 |
|
98.53 |
26.28 |
0.27 |
|
93.11 |
27.47 |
0.30 |
|
90.45 |
26.85 |
0.30 |
| Type3 |
|
98.16 |
26.51 |
0.27 |
|
98.25 |
27.61 |
0.28 |
|
96.37 |
28.13 |
0.29 |
| Type4 |
|
66.63 |
14.94 |
0.22 |
|
64.30 |
12.13 |
0.19 |
|
61.86 |
11.91 |
0.19 |
| Type5 |
|
74.66 |
12.38 |
0.17 |
|
49.27 |
13.57 |
0.28 |
|
58.46 |
13.40 |
0.23 |
| Type6 |
|
54.64 |
12.64 |
0.23 |
|
52.98 |
12.67 |
0.24 |
|
44.16 |
11.84 |
0.27 |
| Type7 |
|
487.38 |
98.28 |
0.20 |
|
458.54 |
89.22 |
0.19 |
|
446.51 |
86.89 |
0.19 |
Blank columns among cgroups are not what i want.
So,two questions:
- How can i do rowspan in htmlTable(),e.g. "TypeName" in my table.
- How can i drop the Blank columns among cgroups.
And this is what i want:
| TypeName |
2015 |
2016 |
2017 |
| mean |
sd |
cv |
mean |
sd |
cv |
mean |
sd |
cv |
| Type1 |
98.73 |
11.02 |
0.11 |
101.22 |
10.41 |
0.10 |
95.22 |
13.00 |
0.14 |
| Type2 |
98.53 |
26.28 |
0.27 |
93.11 |
27.47 |
0.30 |
90.45 |
26.85 |
0.30 |
| Type3 |
98.16 |
26.51 |
0.27 |
98.25 |
27.61 |
0.28 |
96.37 |
28.13 |
0.29 |
| Type4 |
66.63 |
14.94 |
0.22 |
64.30 |
12.13 |
0.19 |
61.86 |
11.91 |
0.19 |
| Type5 |
74.66 |
12.38 |
0.17 |
49.27 |
13.57 |
0.28 |
58.46 |
13.40 |
0.23 |
| Type6 |
54.64 |
12.64 |
0.23 |
52.98 |
12.67 |
0.24 |
44.16 |
11.84 |
0.27 |
| Type7 |
487.38 |
98.28 |
0.20 |
458.54 |
89.22 |
0.19 |
446.51 |
86.89 |
0.19 |
So how can i do that using htmlTable()?
Thanks so much!
Qian
Hi Max,
htmlTable() creates three-line tables as its default results. But i want to draw all td borders in my tables.
My table using this function is below:
Blank columns among cgroups are not what i want.
So,two questions:
And this is what i want:
So how can i do that using htmlTable()?
Thanks so much!
Qian