title: Include/exclude defined frames in Beamer
body: <p>I have a large Beamer file with many frames. Based on the presentation purpose, I want to include/exclude certain slides from the presentation. Is there a way to define the frames at the end of the document and call them up when wanted? Something like the following:</p>
  
  <pre><code>\documentclass{beamer}
  \begin{document}
  
  % including the frames
  \include{F1}
  \include{F2}
  % \include{F3}
  \include{F4}
  
  
  % frame definitions
  \begin{frame}[F1]
  1
  \end{frame}
  \begin{frame}[F2]
  2
  \end{frame}
  \begin{frame}[F3]
  3
  \end{frame}
  \begin{frame}[F4]
  4
  \end{frame}
  \end{document}
  </code></pre>
  
  <p>I know that I can go frame by frame and add <code>&lt;beamer:0&gt;</code> to exclude that frame, but since the presentation is too long it would be great if I had the possibility to do as above. </p>