title: Selecting Data for Non-Parametric Testing in R
body: <p>I'm having troubles selecting data from a dataset in R. I would simply use c() and save this to a variable, but there is too much data to do this. The structure of the data is below: </p>
  
  <pre><code>sex  x outcome 
  m   bc   3
  m   bc   4
  f   bc   5
  f   bc   6
  m   ac   3
  m   ac   2
  f   ac   2
  f   ac   2
  ...
  </code></pre>
  
  <p>So what I need is this data to be split into 4 groups, ie. (m,bc) &amp; (f,bc) &amp; (m,ac) &amp; (f,ac) based on the headers. I'm going to be using bootstrapping method to analyze this data later. </p>
  
  <p>Any help is appreciated!! </p>