Thank you a lot @Yarnabrina for the reply and the welcome. I add below the parts of datasets.
Good tip for dplyr!
dput() for 'genes_brown_GO':
structure(list(`genes_brown_ GO` = c("Actr2", "Adipor2", "Adrm1",
"Agfg1", "Alcam", "Alg3")), row.names = c(NA, 6L), class = "data.frame")
dput() for 'IMQvsLAL_6h_protein_coding_log2FC' (i think just one of the other three data frames is enough
):
structure(list(GeneSymbol = c("March1", "Marc1", "March2", "Marc2",
"Ackr1", "Aldoa"), log2FoldChange = c(1.34127129458368, -2.02525311416417,
0.148269792854153, -0.0372489280122111, 2.29790214816817, 0.320027338944237
)), row.names = c(NA, 6L), class = "data.frame")
Could you tell me then the syntax to use the argument by.x and by.y in the entire code of merge please?
I tried to use the argument by in this way (I changed the colname in genes_brown_GO with GeneSymbol, so the columns have the same header:
IvsL_6h_merged <- merge(genes_brown_GO, IMQvsLAL_6h_protein_coding_log2FC, by.GeneSymbol)
But it didn't work. It gives me this error:
Error in fix.by(by.x, x) : object 'by.GeneSymbol' not found
Really kind!