Hi there,
I would like to intersect the dataframe "x" and "y", through a common data site in the vector "z".
The final result should be connect the 2 vehicles in the dataframe "y" with the most coincident vehicles site in the dataframe "x"
The idea is use the vector "z" as a help for both dataframe to look for the coincident strings between the both dataframes.
Dataframe x:
X.Description
1 PEUGEOT 308 5P Active 1.6 BlueHDi 73KW (100CV)
2 PEUGEOT 308 5P Business 1.6 BlueHDi 73KW (100CV)
3 PEUGEOT 308 5P ACTIVE 1.6 BlueHDi 84KW (115CV)
4 PEUGEOT 308 5P Allure 1.6 BlueHDi 73KW (100CV)
5 PEUGEOT 308 5P Allure 1.6 BlueHDi 84KW (114CV)
Dataframe y:
Description
1 PEUGEOT 308 5P Active 1.6 BlueHDi 73KW (100CV) manual gear box
2 PEUGEOT 308 5P Allure 1.6 BlueHDi 84KW (114CV) manual gear box
Vector "z":
z <- c("allure", "active", "business", "1.6", "BlueHDi",
"84KW", "73KW", "Peugeot", "308", "5p")