why is correlation na in r code example Example: why is correlation na in r cor(data, use = "complete.obs") # complete.obs ignores the NA's