Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
2 answers
48 views

How to transform the data with id and count into one column? [duplicate]

My data is ID n 1 3 2 2 3 4 I want it to be like ID 1 1 1 2 2 3 3 3 3 The only way I can solve it is that I use for loop. Below is my code y <- read.csv('Desktop/勞研所/20220831 攜出/py.csv') data ...
Yu-Chi Syu's user avatar