powered by
Get concordant and discordant pairs for two variables
get_concordant_discordant_pairs(data, x, y)
a data frame
= data
variable 1
variable 2
mtcars$id <- seq.int(nrow(mtcars)) get_concordant_discordant_pairs(mtcars, x = vs, y = am)
Run the code above in your browser using DataLab