I want to add numbers of the same Start
while retaining the form of the dataframe. Below is how my dataframe looks currently.
'data.frame': 305897 obs. of 3 variables:
$ Date : int 20220701 20220701 20220701 20220701 20220701 20220701 20220701 20220701 20220701 20220701 ...
$ Start : chr "ST-10" "ST-10" "ST-10" "ST-10" ...
$ Number: int 1 1 2 1 1 1 1 1 2 1 ...
And below is what I want to make.
'data.frame': 14232 obs. of 3 variables:
$ Date : int 20220701 20220701 20220701 20220701 20220701 20220701 20220701 20220701 20220701 20220701 ...
$ Start : chr "ST-10" "ST-1000" "ST-1002" "ST-351" ...
$ Number: int 50 82 4 32 ...
I first tried using rbind
cbind
merge
but those are not working; maybe since they're only for merging different dataframes? What am I supposed to do?