[Tex/LaTex] Curly brackets catching many lines in tables

bracketstables

I have the following table

\begin{center}
\begin{tabular}{ |p{3cm}||p{3cm}|p{3cm}|  
\hline
 \multicolumn{3}{|c|}{Bosonic spectrum of type IIA and IIB theories} \\
 \hline
 Sector& IIA & IIB\\
 \hline
  NS-NS  & graviton  $g_{\mu \nu}$   & graviton $g_{\mu \nu}$ \\
NS-NS &  dilaton $\phi$  & dilaton $\phi$\\ \hline
R-R & 1-form  $C_1$& (axion)0-form $C_0$\\
R-R   &3-form $C_3$ & 2-form $C_2$ \\
R-R &    & (self-dual) 4-form $C_4$\\
 \hline
\end{tabular}
\end{center}

which I do not know how to make it appear (how do I Latex in this forum?). I would like to do something so that the first column which has these NS-NS and R-R entries to be such that there is only one entry since the first three columns correspond all to NS-NS and the last three all correspond to R-$. That is I would like the first entry of the first column for the first three lines to be something like R{ (so the curly bracket to include all first three columns) and similarly for the last three ones.

How could I do this?

enter image description here

Best Answer

Something like this?

enter image description here

\documentclass{article}

\usepackage{multirow}
\usepackage{array}
\usepackage{mathtools}

\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}}

\begin{document}
\begin{center}
\begin{tabular}{ |R{2cm}||p{3cm}|p{3cm}|}
\hline
\multicolumn{3}{|c|}{Bosonic spectrum of type IIA and IIB theories} \\
\hline
Sector& IIA & IIB\\
\hline
\multirow{2}{*}{NS-NS $\begin{dcases*} \\ \\ \end{dcases*}$}  & graviton  $g_{\mu \nu}$   & graviton $g_{\mu \nu}$ \\
&  dilaton $\phi$  & dilaton $\phi$\\[1.5ex]
\hline
\multirow{4}{*}{R-R $\begin{dcases} \\ \\ \\ \end{dcases}$} & 1-form  $C_1$& (axion)0-form $C_0$\\
&3-form $C_3$ & 2-form $C_2$ \\
&    & (self-dual) 4-form $C_4$\\
 \hline
\end{tabular}
\end{center}

\end{document}
Related Question