Skip to content

Commit

Permalink
Rerender 091 following changes in yihui/knitr@b91452e (yihui#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv authored Jan 28, 2021
1 parent c2df9d3 commit d7c9d98
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions 091-knitr-table.tex
Original file line number Diff line number Diff line change
Expand Up @@ -202,59 +202,59 @@ \section{Default tables are ugly}
\end{alltt}
\end{kframe}
\begin{tabular}{rrrrl}
\toprule
\toprule{}
Sepal.Length & Sepal.Width & Petal.Length & Petal.Width & Species\\
\midrule
\midrule{}
5.1 & 3.5 & 1.4 & 0.2 & setosa\\
4.9 & 3.0 & 1.4 & 0.2 & setosa\\
4.7 & 3.2 & 1.3 & 0.2 & setosa\\
4.6 & 3.1 & 1.5 & 0.2 & setosa\\
5.0 & 3.6 & 1.4 & 0.2 & setosa\\
\addlinespace
5.4 & 3.9 & 1.7 & 0.4 & setosa\\
\bottomrule
\bottomrule{}
\end{tabular}

\begin{kframe}\begin{alltt}
\hlkwd{kable}\hlstd{(}\hlkwd{head}\hlstd{(iris,} \hlnum{0}\hlstd{),} \hlkwc{row.names} \hlstd{=} \hlnum{FALSE}\hlstd{,} \hlkwc{booktabs} \hlstd{=} \hlnum{TRUE}\hlstd{)}
\end{alltt}
\end{kframe}
\begin{tabular}{rrrrl}
\toprule
\toprule{}
Sepal.Length & Sepal.Width & Petal.Length & Petal.Width & Species\\


\bottomrule
\bottomrule{}
\end{tabular}

\begin{kframe}\begin{alltt}
\hlkwd{kable}\hlstd{(}\hlkwd{head}\hlstd{(iris,} \hlnum{1}\hlstd{),} \hlkwc{row.names} \hlstd{=} \hlnum{FALSE}\hlstd{,} \hlkwc{booktabs} \hlstd{=} \hlnum{TRUE}\hlstd{)}
\end{alltt}
\end{kframe}
\begin{tabular}{rrrrl}
\toprule
\toprule{}
Sepal.Length & Sepal.Width & Petal.Length & Petal.Width & Species\\
\midrule
\midrule{}
5.1 & 3.5 & 1.4 & 0.2 & setosa\\
\bottomrule
\bottomrule{}
\end{tabular}

\begin{kframe}\begin{alltt}
\hlkwd{kable}\hlstd{(}\hlkwd{head}\hlstd{(mtcars[,} \hlnum{1}\hlopt{:}\hlnum{7}\hlstd{]),} \hlkwc{booktabs} \hlstd{=} \hlnum{TRUE}\hlstd{)}
\end{alltt}
\end{kframe}
\begin{tabular}{lrrrrrrr}
\toprule
\toprule{}
& mpg & cyl & disp & hp & drat & wt & qsec\\
\midrule
\midrule{}
Mazda RX4 & 21.0 & 6 & 160 & 110 & 3.90 & 2.620 & 16.46\\
Mazda RX4 Wag & 21.0 & 6 & 160 & 110 & 3.90 & 2.875 & 17.02\\
Datsun 710 & 22.8 & 4 & 108 & 93 & 3.85 & 2.320 & 18.61\\
Hornet 4 Drive & 21.4 & 6 & 258 & 110 & 3.08 & 3.215 & 19.44\\
Hornet Sportabout & 18.7 & 8 & 360 & 175 & 3.15 & 3.440 & 17.02\\
\addlinespace
Valiant & 18.1 & 6 & 225 & 105 & 2.76 & 3.460 & 20.22\\
\bottomrule
\bottomrule{}
\end{tabular}


Expand All @@ -267,9 +267,9 @@ \section{Long tables}
\end{alltt}
\end{kframe}
\begin{longtable}{lrrrrrrr}
\toprule
\toprule{}
& mpg & cyl & disp & hp & drat & wt & qsec\\
\midrule
\midrule{}
Mazda RX4 & 21.0 & 6 & 160.0 & 110 & 3.90 & 2.620 & 16.46\\
Mazda RX4 Wag & 21.0 & 6 & 160.0 & 110 & 3.90 & 2.875 & 17.02\\
Datsun 710 & 22.8 & 4 & 108.0 & 93 & 3.85 & 2.320 & 18.61\\
Expand Down Expand Up @@ -308,7 +308,7 @@ \section{Long tables}
\addlinespace
Maserati Bora & 15.0 & 8 & 301.0 & 335 & 3.54 & 3.570 & 14.60\\
Volvo 142E & 21.4 & 4 & 121.0 & 109 & 4.11 & 2.780 & 18.60\\
\bottomrule
\bottomrule{}
\end{longtable}


Expand Down

0 comments on commit d7c9d98

Please sign in to comment.