# Error in correlation with interaction in R

this is my dataset: Variable_1 <- c(3, 5, 6, 9, 12) Variable_2 <- c(5, 5, 7, 6, 10) Variable_3 <- c(0, 1, 3, 3, 5) Variable_4 <- c(6, 7, 5, 10, 10) X <- data.frame(Variable_1, Variable_2, Variable_3, Variable_4) I want to calculate the pairwise correlation of these variables, with interaction with a new variable (x).… Read More Error in correlation with interaction in R