error in na.fail.default

coordinates(mydata) = ~ decimalLatitude + decimalLongitude
Error in na.fail.default(list(decimalLatitude = c(-34.6411, -34.9196, :
missing values in object

I have this error message for my occurrence data.
when I google, it says something like I need to include "na.action=na.exclude"
but, I have no idea where to and how to write it..
because the usual way to write r is coordinate(data) = ~ x + y

can anyone help ?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.