0

IN "R" I am trying to combining duplicate rows values into one row seprated by by comma based on column value. FOR EXAMPLE: In "Name" column same rows are present and in “function” Column have different values In output file the the duplicate entry of "Name" column in the same row in "function" column.

Name function
A ANEAMIA
B HEARING
A METABOLISM
B T-cell
E2 Leukemia

output will be:-

Name function
A ANEAMIA,METABOLISM
B HEARING,T-cell
C T-cell
E2 Leukemia
Scott Thompson
  • 22,629
  • 4
  • 32
  • 34
Ani
  • 1
  • 1

0 Answers0