How to make R create shape file readying using the names created during the script runNetwork analysis and adjacency matricesHow to create empty data frame with column names specified in R?Find location of current .R filePython: how to create a point shape-file from a text filewriteOGR saving for multiple shapefilesUse a formula stored in an object for the raster function overlayPlotting text labels over geom_polygon data in ggmap in Rhow do you create sections/subsections and ggplot in knitr word documentR: looping to save multiple shapefilesPulling French characters from a csv file and updating a featureclass with them (ArcGIS 10.4 & Python 2.7.10)

Increase performance creating Mandelbrot set in python

Time travel short story where a man arrives in the late 19th century in a time machine and then sends the machine back into the past

What's a natural way to say that someone works somewhere (for a job)?

Teaching indefinite integrals that require special-casing

What are the ramifications of creating a homebrew world without an Astral Plane?

Greatest common substring

Will it be accepted, if there is no ''Main Character" stereotype?

Modulo 2 binary long division in European notation

Your magic is very sketchy

What's the purpose of "true" in bash "if sudo true; then"

Displaying the order of the columns of a table

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

how to analyze "是其于主也至忠矣"

Why does John Bercow say “unlock” after reading out the results of a vote?

Using parameter substitution on a Bash array

Best way to store options for panels

HashMap containsKey() returns false although hashCode() and equals() are true

voltage of sounds of mp3files

How can a jailer prevent the Forge Cleric's Artisan's Blessing from being used?

Mapping a list into a phase plot

What would happen if the UK refused to take part in EU Parliamentary elections?

MaTeX, font size, and PlotLegends

Can somebody explain Brexit in a few child-proof sentences?

Lay out the Carpet



How to make R create shape file readying using the names created during the script run


Network analysis and adjacency matricesHow to create empty data frame with column names specified in R?Find location of current .R filePython: how to create a point shape-file from a text filewriteOGR saving for multiple shapefilesUse a formula stored in an object for the raster function overlayPlotting text labels over geom_polygon data in ggmap in Rhow do you create sections/subsections and ggplot in knitr word documentR: looping to save multiple shapefilesPulling French characters from a csv file and updating a featureclass with them (ArcGIS 10.4 & Python 2.7.10)













0















I'd like R to create the names automatically instead of me having to hard code them into the script when its creating a shapefile



writeOGR(Data.shp, dsn = "C:\Desktop\Testing_Folder", 
layer = paste0(save.loc, "/", address.name, "-", address.county, "/",
address.name, "-data.shp"), row.names=F, driver = "ESRI Shapefile"))


The Layer section is how I usually code to to automatically have the script place the name since there wold be many runs with many different addresses. But this string doesn't work in this instance and i'm stuck at a roadblock mentally in how to achieve this using writeOGR.



Any help would be appreciated










share|improve this question




























    0















    I'd like R to create the names automatically instead of me having to hard code them into the script when its creating a shapefile



    writeOGR(Data.shp, dsn = "C:\Desktop\Testing_Folder", 
    layer = paste0(save.loc, "/", address.name, "-", address.county, "/",
    address.name, "-data.shp"), row.names=F, driver = "ESRI Shapefile"))


    The Layer section is how I usually code to to automatically have the script place the name since there wold be many runs with many different addresses. But this string doesn't work in this instance and i'm stuck at a roadblock mentally in how to achieve this using writeOGR.



    Any help would be appreciated










    share|improve this question


























      0












      0








      0








      I'd like R to create the names automatically instead of me having to hard code them into the script when its creating a shapefile



      writeOGR(Data.shp, dsn = "C:\Desktop\Testing_Folder", 
      layer = paste0(save.loc, "/", address.name, "-", address.county, "/",
      address.name, "-data.shp"), row.names=F, driver = "ESRI Shapefile"))


      The Layer section is how I usually code to to automatically have the script place the name since there wold be many runs with many different addresses. But this string doesn't work in this instance and i'm stuck at a roadblock mentally in how to achieve this using writeOGR.



      Any help would be appreciated










      share|improve this question
















      I'd like R to create the names automatically instead of me having to hard code them into the script when its creating a shapefile



      writeOGR(Data.shp, dsn = "C:\Desktop\Testing_Folder", 
      layer = paste0(save.loc, "/", address.name, "-", address.county, "/",
      address.name, "-data.shp"), row.names=F, driver = "ESRI Shapefile"))


      The Layer section is how I usually code to to automatically have the script place the name since there wold be many runs with many different addresses. But this string doesn't work in this instance and i'm stuck at a roadblock mentally in how to achieve this using writeOGR.



      Any help would be appreciated







      r arcgis






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 21 at 15:17







      Island868

















      asked Mar 21 at 15:03









      Island868Island868

      92




      92






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55283463%2fhow-to-make-r-create-shape-file-readying-using-the-names-created-during-the-scri%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55283463%2fhow-to-make-r-create-shape-file-readying-using-the-names-created-during-the-scri%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해