[R] how to convert a set of strings to a list of unique numeric id?
fanggangsw at gmail.com
Mon Jun 21 01:46:38 CEST 2010
I have been a matlab user and is learning R.
I want to convert a large list of strings to a list of unique numeric
ids to reduce storage space.
there is a string list (there are duplicates)
and I want to have a corresponding numeric id list
In matlab, the 'unique' function can do this in addition to give the
unique set, but in R, 'unique' only gives the unique set
Please advice me on this.
More information about the R-help