## Not run: seafishing <- geoinside(fishing,island,option=2)
# # Removes those datapoints from fishing where fishing took
# # place inside Iceland (misspells).
#
# grd <- list(lat=c(64,64,63,63),lon=c(-23,-22,-22,-23))
# ins.lat.64.63.lon.23.22 <- geoinside(fishing,grd,robust =T)
# # Extracts those points from fishing where fishing
# # took place inside the given box.
#
#
#
# #######################################################
# # Example #
# #######################################################
#
# par(mfrow=c(2,1))
# stations<-data.frame(lat=stodvar$lat,lon=stodvar$lon)
# stations<-stations[!is.na(stations$lon),]
# stations<-stations[!is.na(stations$lat),]
#
# geoplot(grid=F)
# geopoints(stations,pch=".",col=25)
# title(main="Before geoinside")
#
# sea.stations <- geoinside(stations,island,option=2)
# # Removes those datapoints from stations where
# # measurments took place inside Iceland (misspells).
#
# geoplot(grid=F)
# geopoints(sea.stations,pch=".",col=25)
# title(main="After geoinside")
#
# #######################################################
#
# ## End(Not run)
Run the code above in your browser using DataLab