d: Cohen's d (the input can be a vector of values)
n1: sample size in the first of two group (the input can be a vector of values)
n2: sample size in the second of two group (the input can be a vector of values)
d_var: (optional argument) variance of d (the input can be a vector of values). If this argument receives an input, variance of r will be returned as well.
Returns
the output will be a vector of correlation values (and variances of r if the argument d_var received an input)