0
我有一个数据帧,看起来像这样重构hashStrings到整数R中
column1 column2
asdf qwer
fghj qwer
asdf mkop
fghj mkop
yuio lops
正如你所看到的,字符串值并不意味着什么,我只有在自己的哈希字符串是相同的关心。我如何重构它,看起来像这样?
column1 column2
1 1
2 1
1 2
2 2
3 3