I have two data tables [main dt & parameters dt]
How do I not hardcode the parameters and only compute the mean, plot correlation and variance-cdf with the parameters listed in paramters dt? My parameter dt looks like this,

Where I will only get mean,correlation and var-cdf if it has Y on it.