I am looking to insert a latex table into an .rmd file. However, when I try to compile the pdf I receive this error (I have been able to reproduce the table in overleaf).
--- title: "Test" author: "me" date: "1/27/2019" output: pdf_document: keep_tex: yes --- ## Table \begin{table}[] \centering \begin{tabular}{|l|c|c|} \hline & Sad & Happy \\ \hline Short & \begin{tabular}[c]{@{}l@{}}Sam\\ Beth\end{tabular} & \begin{tabular}[c]{@{}l@{}}Jim\\ Sara\end{tabular} \\ \hline Tall & \begin{tabular}[c]{@{}l@{}}Erin\\ Ted\end{tabular} & \begin{tabular}[c]{@{}l@{}}Bob\\ Ava\end{tabular} \\ \hline \end{tabular} \caption{My caption} \label{my-label} \end{table} #ERROR ! Misplaced \noalign. \hline ->\noalign {\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet... l.105 \textbackslash{} \hline Tall \& 
