title: Referencing Row Number in R
body: <p>How do I reference the row number of an observation? For example, if you have a <code>data.frame</code> called "data" and want to create a variable <code>data$rownumber</code> equal to each observation's row number, how would you do it without using a loop?</p>