I want to create a table that uses both multicolumn and multirow. Currently, I used the code:
\begin{table}[!h]
\label{T:equipos}
\begin{center}
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
\multicolumn{7}{|c|}{\textbf{Datasets}} \\
\cline{1-7}
\multicolumn{3}{|c|}{\textbf{in-house}} & \multicolumn{4}{c|}{\textbf{NSL-KDD}} \\
\hline
\hline
DR & Accuracy & FPR & K value & DR & Accuracy & FPR\\ \hline
\multirow{ 1}{*}{99.75} & \multirow{ 1}{*}{99.72} & \multirow{ 1}{*}{0.06} &
1 & 90.53 & 96.14 & 0.0\\ \hline
& & & 2 & 94.22 & 97.65 & 0.0\\ \hline
& & & 3 & 95.50 & 98.16 & 0.0\\ \hline
& & & 4 & 96.10 & 98.41 & 0.0\\ \hline
& & & 5 & 97.7 & 98.92 & 0.11\\ \hline
\end{tabular}
\end{center}
\end{table}
which produces the following table
but what I want is this:
how can I achieve the format of the table above i.e., table 2 above?