@@ -96,21 +96,21 @@ authors_match <- function(data){
9696
9797
9898
99- # # Count how many times each OI value appears
100- # oi_counts <- table(n_n$OI)
101- # # Find OI values with more than one RI
102- # multiple_ri <- names(oi_counts[oi_counts > 1])
103- # # ID the rows to remove
104- # rows_to_remove_oi <- which(n_n$OI %in% multiple_ri)
105- # # remove them
106- # n_n_clean <- n_n[-rows_to_remove_oi, ]
107- # # Find RI values with more than one OI
108- # ri_counts <- table(n_n_clean$RI)
109- # multiple_oi <- names(ri_counts[ri_counts > 1])
110- # # Identify rows to remove
111- # rows_to_remove_ri <- which(n_n_clean$RI %in% multiple_oi)
112- # # Remove those rows
113- # n_n_clean <-n_n_clean[-rows_to_remove_ri, ]
99+ # Count how many times each OI value appears
100+ oi_counts <- table(n_n $ OI )
101+ # Find OI values with more than one RI
102+ multiple_ri <- names(oi_counts [oi_counts > 1 ])
103+ # ID the rows to remove
104+ rows_to_remove_oi <- which(n_n $ OI %in% multiple_ri )
105+ # remove them
106+ n_n_clean <- n_n [- rows_to_remove_oi , ]
107+ # Find RI values with more than one OI
108+ ri_counts <- table(n_n_clean $ RI )
109+ multiple_oi <- names(ri_counts [ri_counts > 1 ])
110+ # Identify rows to remove
111+ rows_to_remove_ri <- which(n_n_clean $ RI %in% multiple_oi )
112+ # Remove those rows
113+ n_n_clean <- n_n_clean [- rows_to_remove_ri , ]
114114
115115
116116
0 commit comments