0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Rで同じIDごとに連番をふる方法

Posted at

Rで、同じidに連番をふっていく方法(idが変わったら番号を1から振り直す方法)がわからず困っています。。

id no
1 1
1 2
1 3
1 4
1 5
1 6
2 1
2 2
2 3
2 4
2 5
2 6
2 7

エクセルでのやり方はわかるのですが、データが膨大なため、途中でエクセルがクラッシュしてしまい、Rで挑戦しております。

何卒よろしくお願い申し上げます。

0
0
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?