Convert correlation matrix to covariance matrix

convert_R2S(R, var)

Arguments

R

Correlation matrix

var

Vector of variances