GetPairs(letters[1:4])
GetPairs(x = letters[1:4], y = LETTERS[1:2])
# get all pairs of combinations between factors and numerics out of a data.frame
GetPairs(which(sapply(d.pizza, IsNumeric)), which(sapply(d.pizza, is.factor)))
Run the code above in your browser using DataCamp Workspace