In cases where a shapefile is missing its associated .prj file.

createPrjFile(
  shpFile,
  urlForProj = "http://spatialreference.org/ref/epsg/nad83-utm-zone-11n/prj/"
)

Arguments

shpFile

The filename of a shapefile to add .prj

urlForProj

The url from which to fetch the projection, e.g., "http://spatialreference.org/ref/epsg/nad83-utm-zone-11n/prj/".