I am getting this error and the table is failed to generate.
\documentclass{IEEEtran}
\usepackage{booktabs, makecell, multirow, tabularx}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\usepackage[figuresright]{rotating}
\setlength{\rotFPtop}{0pt plus 1fil}
\renewcommand{\theadfont}{\footnotesize\bfseries}
\renewcommand\theadgape{}
\usepackage{lipsum} % for dummy text filler
\begin{document}
\begin{table}
\centering
\caption{The consolidated accuracy of the system}
\label{tab:Precision}
\begin{tabular}{ >{\bfseries}c c c c l }
\toprule
\thead{Risk level} &\thead{Precision} & \thead{Recall} & \thead{f1-score} & \thead{Support}\\
\midrule
& High & .95 & .93 & 1.00 & 60\\
\addlinespace
& Medium & .99 & .92 & .93 & 60\\
\addlinespace
& Low & .95 & .99 & .96 & 60\\
\addlinespace
& None & .99 & .95 & 1.00 & 60\\
\bottomrule
\end{tabular}
\end{table}
\lipsum
\end{document}
Please help. I have tried with tabularx and L combination also, without any success.
tabular
but for all rows but the first (with\thead
) there are 6 columns used, with the first is always empty. IMHO you should remove the starting&
in each row.