how do i re-write this to get it to run ignoring the NAs?
I am expecting a correlation value between the variables and I am getting NA.
cor(vehicle_year,speed)
cor(subject_age,speed)
cor(posted_speed,speed)
how do i re-write this to get it to run ignoring the NAs?
I am expecting a correlation value between the variables and I am getting NA.
cor(vehicle_year,speed)
cor(subject_age,speed)
cor(posted_speed,speed)