Hi,
What I'm attempting is probably rather simple but I have no idea how to google it or where to start. I have a data frame (see below) of acoustic data. All I want to do is create a new column that states which week number the row belongs to. The first column in the data frame (Process_ID) is basically that column, all I want to do is create a new column where the Process_ID number corresponds with just "1" or "2" and so on..
For example, the first week of my data set can be identified using the Process_ID number "74250". I just want to make a corresponding column that will list "1" on rows that have "74250" in the Process_ID column.
Process_ID Interval Layer Height_mean Layer_depth_min Layer_depth_max Ping_
<
1 74250 1 1 11.8 3.14 103. 0 865 432 0 0 0
2 74250 2 1 11.9 3.14 103. 866 1730 1298 0 0 0
3 74250 3 1 11.9 3.14 103. 1731 2595 2163 0 0 0
4 74250 4 1 12.0 3.14 103. 2596 3460 3028 0 0 0
5 74250 5 1 12.0 3.14 103. 3461 4325 3893 0 0 0
6 74250 6 1 11.9 3.14 103. 4326 5190 4758 0 0 0