| Patient | Patient |
|---|---|
| chris | chris |
| chris | jake |
| tom | alvin |
As you can see there are same column name but I only want the those on the right.
Sample code
x = read_excel(path, sheet=1)
df = data.frame(x)
df <- df [, !duplicated(colnames(df), fromLast = TRUE)]
But the output is wrong.