Hello,
So i Have 4 different data frames and i want to find common values between them and want to extract those rows all in all, So i think using subset before intersect should work if i am not wrong.
Any suggestions how advanced subsetting works?
Newfunction<- function(A,B,C,D) {
Matrix_1 <- intersect(row.names(A),row.names(B))
Matrix_2 <- intersect(row.names(C),row.names(D))
Combined_matrix <- intersect(Matrix_1,Matrix_2)
return(Combined_matrix)
}
Newfunction (Healthy_1, Healthy_2, Healthy_3, Aggr_data)