I am facing problem to combine multicolumn and multirow together in a table. Anyone help what should be the latex code for below table?
Update
I have tried some code,
\begin{tabular}{|c|c|cc|}
\hline
\multicolumn{2}{|c|}{} & \multicolumn{2}{c|}{C} \\
\cline{3-4}
\multicolumn{2}{|c|}{R}& true & false \\
\hline
\multirow{2}{*}{R} & true & 1 & 1 \\
\hline
& false & 2 & 3 \\
\hline
\end{tabular}
It's splitting the row. And I don't know how to make column margin at the top.
Best Answer
Probably one of the following suggestion helps: