getCor gets data contained by an RS object ready and then calls the cor function for correlation calculations
getCor
see function cor of stats
method that handles RS objects