Map samples to a training dataset by correlation
map_by_cor(train.dat, train.cl, test.dat, method = "median")a list object containing two objects:
pred.df: a data.frame with two columns, pred.cl and pred.score with the predicted cluster and correlation scores.
cor.matrix: a matrix object with correlation scores for each cluster.