title: markdown and bookdown -run by factors
body: <p>I am brand new to markdown language.</p>
  
  <p>I am using bookdown to generate reports. I have two questions:</p>
  
  <p>If I have one stacked dataset with one column being a factor... </p>
  
  <ol>
  <li><p>Is it possible to run separate reports by each factor level (note: I know how to do this analysis in R, I want to know if I can export separate results by each factor as separate reports. Any tips to do this are appreciated.</p></li>
  <li><p>Can you reference this level in the TEXT section of the report?</p></li>
  </ol>
  
  <p>I want one report titled, "Results for A" with stats=1234 and another report titled "Results for B with stats=567" where A and B are the levels of a factor.</p>
  
  <p>Does that make sense? All help is appreciated.
  I want one report titled, "Results for A" with mode = 2 and another report titled "Results for B with mode = 3".</p>
  
  <p>Does that make sense? All help is appreciated.</p>