I have the following dataset:
longitude latitude
NA NA
NA NA
NA NA
NA NA
-73.77384042 40.64582098
NA NA
NA NA
NA NA
NA NA
NA NA
I am using the below code for converting the lat & long to get the location using the below code:
tweets1.df$textAddress <- mapply(FUN = function(lon, lat) revgeocode(c(lon, lat)), tweets1.df$longitude, tweets1.df$latitude)
But I am getting the following error: Error: is.numeric(location) && length(location) == 2 is not TRUE
Please let me know where I am going wrong.