How to use R language to calculate the frequency of the same ID
This article introduces the relevant knowledge of "how to use R language to count the frequency of the same ID". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
R language code, statistical vector frequency, in fact, is very simple, using the table method to complete in one step, followed by the drawing:
Note that the theme of this code is that the cowplot theme is suitable for SCI articles to be published, and the bar chart is set to add numbers.
Library (reshape2) local ({r