I am using knitr and xtable to generate a table and I would like to wrap some text. The code is below. I would like to wrap the 3rd column (Exposure Groups). The column width looks ok but the text are not wrapped. What is wrong with the code?
TableSumStatsAllPeriods <- xtable(reduced.res.Q4000.THC,
caption="Summary statistics ",
label="TableSumStatsAllPeriods",
align = "llp{4cm}cccccc")
@
\newpage \begin{landscape}
<<printTableSumStatsAllPeriods, echo = FALSE, eval=TRUE,results = "asis" >>=
print(TableSumStatsAllPeriods,tabular.environment='longtable',floating=FALSE,
caption.placement="top",
size="small",
h.line.after=c(-1,nrow(TableSumStatsAllPeriods)),
add.to.row=list(pos=list(0),command="\\hline \\endhead"))
@ \end{landscape}