Remove Duplicates from a list using R environment
Suppose we have data with multiple values and
we only want to keep the unique values from
that data like this :
Emna
Tom
Hans
Olivier
Tom
Ana
Simcic
Paul
Simcic
Emna
Emna
Tom
Hans
Olivier
Ana
Simcic
Paul
Data we have looks like this Data we need to look like :
R code for removing duplicates
1: set the working
directory where data
is present
2. Read data file
3. See your data
4. Remove duplicates
5. See your data
again

Remove duplicates

  • 1.
    Remove Duplicates froma list using R environment
  • 2.
    Suppose we havedata with multiple values and we only want to keep the unique values from that data like this : Emna Tom Hans Olivier Tom Ana Simcic Paul Simcic Emna Emna Tom Hans Olivier Ana Simcic Paul Data we have looks like this Data we need to look like :
  • 3.
    R code forremoving duplicates 1: set the working directory where data is present 2. Read data file 3. See your data 4. Remove duplicates 5. See your data again