My problem is as detailed below:
My input data is of the format as given in the small example below:
USERID LONGITUDE LATITUDE 1 -8.7965
No need to use a for-loop here. I recommand you to use lapply to avoid side effect, and pre-allocate problems:
for-loop
lapply
locaddr <- lapply(seq(nrow(location)), function(i){ revgeocode(location[i,], output = c("address"), messaging = FALSE, sensor = FALSE, override_limit = FALSE) })