title: Cut Function in R program
body: <pre><code>Time    Velocity
  0   0
  1.5 1.21
  3   1.26
  4.5 1.31
  6   1.36
  7.5 1.41
  9   1.46
  10.5    1.51
  12  1.56
  13  1.61
  14  1.66
  15  1.71
  16  1.76
  17  1.81
  18  1.86
  19  1.91
  20  1.96
  21  2.01
  22.5    2.06
  24  2.11
  25.5    2.16
  27  2.21
  28.5    2.26
  30  2.31
  31.5    2.36
  33  2.41
  34.5    2.4223
  36  2.4323
  </code></pre>
  <p>So I have data about Time and Velocity...I want to use the cut or the which function to separate my data into 6 min intervals...my Maximum Time usually goes up to 3000 mins
  So I would want the output to be similar to this...</p>
  <pre><code>Time    Velocity
  0   0
  1.5 1.21
  3   1.26
  4.5 1.31
  6   1.36
  Time    Velocity
  6   1.36
  7.5 1.41
  9   1.46
  10.5    1.51
  12  1.56
      
  Time    Velocity
  12  1.56
  13  1.61
  14  1.66
  15  1.71
  16  1.76
  17  1.81
  18  1.86
  </code></pre>
  <p>So what I did so far is read the data using data=read.delim(&quot;clipboard&quot;)
  I decided to use the function 'which'....but I would need to do it for up 3000 mins etc</p>
  <pre><code>dat &lt;- data[which(data$Time&gt;=0
  &amp; data$Time &lt; 6),],
  dat1 &lt;- data[which(data$Time&gt;=6
  &amp; data$Time &lt; 12),]
  </code></pre>
  <p>etc
  But this wouldn't be so convenient if I had time to went up to 3000 mins
  Also I would want all my results to be contained in one output/ variable</p>