I'm experimenting with matching along n variables (ex x1 and x2) and want to keep track of the distance for each variable (distance_col = "distance"). You can do this, but the data frame creates n + 1 variables, a distance measure for each variable with the corresponding prefix (x1.distance) and an original distance measure distance that is only NA's. It would be nice if this were dropped automatically.
I'm experimenting with matching along n variables (ex
x1
andx2
) and want to keep track of the distance for each variable (distance_col = "distance"
). You can do this, but the data frame creates n + 1 variables, a distance measure for each variable with the corresponding prefix (x1.distance
) and an original distance measuredistance
that is only NA's. It would be nice if this were dropped automatically.