title: Resize threepartable for beamer
body: <p>I would like to use the <code>resize</code> function from the<code>graphicx</code> package to fit a large <code>threeparttable</code> into a beamer presentation, however I can't seem to get code from examples that you use tabular environments to work. Using the following code:</p>
  
  <pre><code>\documentclass{beamer}
  \usepackage{graphicx}
  \usepackage{booktabs}
   \usepackage{graphicx,threeparttable,caption}
  
  \begin{document}
  
  \begin{frame}
  \begin{table}[h!] \small
  \begin{threeparttable}
  \caption{\textbf{Descriptive Statistics} \label{tab:descriptivestats}}
      \begin{tabular}{  p{3.5cm} p{1.0cm} p{1.0cm}  p{1.0cm} p{1.0cm} p{1.0cm}}
      \hline
  \textbf{Var} &amp; \textbf{Min} &amp; \textbf{Max} &amp; \textbf{Mean} &amp; \textbf{SD} &amp; \textit{N} \\ 
      \hline
    \hline
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
     XYZ &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 
    \hline
    \hline
  \end{tabular}
     \begin{tablenotes}
        \footnotesize
       \item \textbf{Note:}  XYZ 
      \end{tablenotes}
  \end{threeparttable}
  \end{table}
  \end{frame}
  
  \end{document}
  </code></pre>
  
  <p>Any thoughts on how to get this to fit, using <code>resize</code> or another command? </p>