FR

Fusionner des data.frame

X <- data.frame(SEXE=c("F","H","H","F"),Taille=c(165,182,178,160),
Poids=c(50,65,67,55),Rev=c(80,90,60,50))

Y <- data.frame(SEXE=c("F","H","H","F"),Taille=c(165,182,178,160),
Poids=c(55,65,67,85),Sal=c(70,90,40,40))

Z <- merge(X,Y,by=c("SEXE","Poids"),all=FALSE)
W <- merge(X,Y,by=c("SEXE","Poids"),all=TRUE)

img