I have several big data frames which would be much easier to further analyse if I could add certain numbers in an additional column called "event".
E.g. row 19 to 53 should all have the number 1 as they belong to event no. 1, row 65 to 92 the number 2 etc. So not every row gets a number, because some data will be left out for further analysis (left out data could get 0/NA if that is needed and the column has to be continuous).
Thanks in advance!
I just know how to add a column but not how to attach specific data for certain rows.