r - Prevent wide header split into multiple lines for rmarkdown table -


i'm trying render r markdown document using rmarkdown::render(). header in 1 of tables ends being split multiple lines although contains column headers consisting of single words. example of output shown below.

enter image description here

there 6 one-word labels , them on same line.

i think may because header wide , pandoc tried prevent table being split altogether. if remove, say, last column 1 of label "moved line". below i've added rmd-file results in image shown above if render using rmarkdown::render().

--- title: trees date: "`r sys.date()`" output: pdf_document documentclass: report ---  ### header following table of interest  ------------------------------------------------------------------------------------------------------------------------ &nbsp;                                                  character    factor    labelled   numeric    integer    logical ------------------------------------------------------ ----------- ---------- ---------- ---------- ---------- --------- identify miscoded missing values                        $\times$    $\times$   $\times$   $\times$   $\times$  identify prefixed , suffixed whitespace               $\times$    $\times$   $\times$  identify levels < 6 obs.                           $\times$    $\times$  identify case issues                                    $\times$    $\times$  identify missclassified numeric or integer variables    $\times$    $\times$  identify outliers                                                                         $\times$   $\times$ ------------------------------------------------------------------------------------------------------------------------ 


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -