To delete duplicate rows in R you can the duplicated() function. Here’s how to remove all the duplicates in the data frame called “study_df”, study_df.un <- study_df[!duplicated(df)].