corr# swordfish.function.corr()# Calculate the correlation of X and Y. Note that when the variance of X or Y is 0, the return value is NULL. Parameters: X (Constant) – A vector/matrix/table. Y (Constant) – A vector/matrix/table. X and Y are of the same size. If X is a table, only the numeric and Boolean values are calculated.