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.




\multirowandmulticolumncells ... show what you try so far that we can simly show, how to use them. See https://tex.stackexchange.com/questions/375581/multirow-multicolumn-combination-problem?rq=1 (your question can be duplicate to this). – Zarko Nov 17 '19 at 18:42\hlineit crosses the row margin and splits the row. – Sazzad Hissain Khan Nov 17 '19 at 18:45\hline(use\clineinstead 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) – Zarko Nov 17 '19 at 18:49