Should we care about NA data in a DataFrame when we use corr.()?

Viewed 32

I try to calculate the correlation matrix of a DataFrame. But I'm so confused that should we replace all NA data with 0 or just remove them? In other words, will NA data affect the calculation of correlation?

1 Answers
Related