Bogdan Tanasa
2018-Jul-18 22:12 UTC
[R] help with merging two dataframes function of "egrep"-like formulas
Dear all,
please may I ask for a piece of advise regarding merging two dataframes :
A <- data.frame(z=c("a*b", "c*d", "d*e",
"e*f"), t =c(1, 2, 3, 4))
B <- data.frame(z=c("a*b::x*y", "c", "",
"g*h"), t =c(1, 2, 3, 4))
function of the criteria :
if "the elements in the 1st column of A could be found among the elements
of the 1st column of B" i.e.
for the example above, we shall combine in the results only the row with
"a*b" of A with the row with "a*b::x*y" of B.
thank you,
bogdan
[[alternative HTML version deleted]]