I would like to count the instances of a Employee ID in a column and write back the results to a new column in my dataframe. So far I am able to count the instances and display the results in the R Studio console, but I'm not sure how to write the results back. Here is what I have tested successfully:
ids<-BAR$`Employee ID`
counts<-data.frame(table(ids))
counts
And here are the returned results:
1   00000018    1
2   00000179    1
3   00001045    1
4   00002729    1
5   00003095    2
6   00003100    1
Thanks!
 
     
     
    