My dataset consists of three procedures (C, S, and E) for each person. It looks something like this.
Year Cultivar Site Distance Plant Treat yield1 yield2
1 2011 Blue ABR 0m 1 C 0.879 1.5
2 2011 Blue ABR 0m 1 S 0.384 2.3
3 2011 Blue ABR 0m 1 E 0.03 0.5
4 2011 Blue ABR 0m 2 C 0.923 1.2
5 2011 Blue ABR 0m 2 S 0.344 0.5
6 2011 Blue ABR 0m 2 E 0.07 0.7
7 2011 Blue ABR 50m 1 C 0.255 3.4
8 2011 Blue ABR 50m 1 S 1.00 2.4
9 2011 Blue ABR 50m 1 E 0.1 0.9
.
.
.
I have data for two years, 2 varieties, 15 sites, 3 distances per site and 10 plants per distance. I basically have a lot of data (> 1400 rows). What I want to do is add a new column that assigns a new number to each of the study participants. I want my data to look like this.
Individual Year Cultivar Site Distance Plant Treat yield1 yield2
1 1 2011 Blue ABR 0m 1 C 0.879 1.5
2 1 2011 Blue ABR 0m 1 S 0.384 2.3
3 1 2011 Blue ABR 0m 1 E 0.03 0.5
4 2 2011 Blue ABR 0m 2 C 0.923 1.2
5 2 2011 Blue ABR 0m 2 S 0.344 0.5
6 2 2011 Blue ABR 0m 2 E 0.07 0.7
7 3 2011 Blue ABR 50m 1 C 0.255 3.4
8 3 2011 Blue ABR 50m 1 S 1.00 2.4
9 3 2011 Blue ABR 50m 1 E 0.1 0.9
.
.
.
R, , , . , "" * * * * , , , .
!