'using spearmanCI with missing values in R

I am trying to obtain confidence intervals for my spearmans correlations in r, when I use the follow code:

spearmanCI(analytic_data_survey$total_jealousy_score, analytic_data_survey$mvd_score,
           level = 0.95,
           method = "Euclidean")

I get an error

Error in spearmanCI.default(analytic_data_survey$total_jealousy_score,  : 
  missing values are not allowed

I previously ran the code on different data set that had some missing values and I didn't have this issue so I am confused. Is there an easy way around this?

r


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source