title: How can I create a new column with the same id every n rows in R?
body: <p>I have a data frame where I want to create a new column in which to assign the same ID every 30 rows.</p>
  <p>My data frame is from an experiment and I wish to create a new &quot;bloc&quot; column, so that every 30 rows it increments by 1</p>
  <p>example:</p>
  <p>col1 : response latency = 1,0002, 1.2566, ...30times, 1.5422, ...</p>
  <p>col2 : difficulty = easy, hard, intermediate, ...</p>
  <p>col3 : ID = 1, 2, 3, ...30times, 31, 32, ...</p>
  <p>And I want a new column</p>
  <p>new col : bloc = 1, 1, ...30times, 2, 2, ...30times, 3, 3, ...</p>