Description Usage Arguments Value Examples
Copy shapefiles, ensuring that all the supporting files (.shx, .qpj, .dbf, .xml, .prj) get copied too
1 | shp_copy(from, to, overwrite = F)
|
from |
Character vector containing filenames of the .shp file to be copied |
to |
Character vector containing filenames of the .shp file to be copied |
overwrite |
logical. Should existing destination files be overwritten? |
A logical indicating whether the copying action was successful.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# providing a destination filename
shp_copy(from = "C:/Users/pieterbeck/Documents/simple_outline.shp",
to = "C:/Users/pieterbeck/Documents/temp/my_backup.shp")
# providing only a destination directory
shp_copy(from = "C:/Users/pieterbeck/Documents/simple_outline.shp",
to = "C:/Users/pieterbeck/Documents/temp/")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.