library(rgdal)
library(maptools)Defining projections
proj <- CRS('+proj=aea +lat_1=29.5 +lat_2=45.5 ...')
latlon <- CRS("+proj=longlat +datum=WGS84")Converting a data frame with lat lon into a geo data set
data <- read.csv('list-of-points.csv')
# define the columns that contain the coordinates
coordinates(data) <- c('lat', 'lon')
# and specify the source projection, usually wgs84 latlon
proj4string(data) <- latlon Re-projecting a dataset
data <- spTransform(data, proj)Store as point shapefile
writePointsShape(data, 'points.shp')