Skip to content
RDocumentation: ip2location
Note that this notebook was automatically generated from an RDocumentation page. It depends on the package and the example code whether this code will run without errors. You may need to edit the code to make things work.
if(!require('rgeolocate')) {
install.packages('rgeolocate')
library('rgeolocate')
}
Run cancelled
file <- system.file("extdata","ip2_sample.bin", package = "rgeolocate")
example_ip <- "2A04:0000:0000:0000:0000:0000:0000:0000"
ip2location(example_ip, file, c("country_code", "country_name", "region", "city"))