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.
\multirow
andmulticolumn
cells ... show what you try so far that we can simly show, how to use them. See tex.stackexchange.com/questions/375581/… (your question can be duplicate to this).\hline
it crosses the row margin and splits the row.\hline
(use\cline
instead of tit) should not be a problem. Show us, what you try so far. Otherwise your question is "do-this-instead-of-me" and will be closed us to broad or as duplicate (what for sure it is)