Writing raster with attribute table in R? The 2019 Stack Overflow Developer Survey Results Are...

Keeping a retro style to sci-fi spaceships?

Do warforged have souls?

Why does the Event Horizon Telescope (EHT) not include telescopes from Africa, Asia or Australia?

"... to apply for a visa" or "... and applied for a visa"?

Why does this iterative way of solving of equation work?

How to test the equality of two Pearson correlation coefficients computed from the same sample?

Cooking pasta in a water boiler

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

How can I protect witches in combat who wear limited clothing?

How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?

Sort a list of pairs representing an acyclic, partial automorphism

Mortgage adviser recommends a longer term than necessary combined with overpayments

University's motivation for having tenure-track positions

The variadic template constructor of my class cannot modify my class members, why is that so?

Why is the object placed in the middle of the sentence here?

Netflix Recommendations?

Hiding Certain Lines on Table

How to split my screen on my Macbook Air?

How is simplicity better than precision and clarity in prose?

Problems with Ubuntu mount /tmp

Wall plug outlet change

Is this wall load bearing? Blueprints and photos attached

Working through the single responsibility principle (SRP) in Python when calls are expensive

How to stretch delimiters to envolve matrices inside of a kbordermatrix?



Writing raster with attribute table in R?



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How to utilise single 'randomForest' model for several rasters in R?Clipping raster brick object in RImported map showing up small in ArcMap?Problems when Joining table to polygonExport attribute table from ArcGIS Online and format it in Google Sheet/Excel Online etcVerifying a binary raster map with point locationsExporting a timeslice from a Netcdf-Rasterlayer as tif-rasterlayerPreparing two raster datasets for grouped barplotArcMap ModelBuilder: Output of Raster Iterator only runs one Outputspatial join with the same merge rules for multiple fields in a single feature class





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I fix a species distribution model and predict the suitable habitat using this model, and then I got a map plotted in R.



I tried to save this prediction as a raster, using code:



rf<-writeRaster(px, filename="predict.tif", format="GTiff")


However, I could only export a tif format file without a attribute table. I could put this raster to Arcgis software, but without a attribute table, it is difficult to run any analysis.



How can I export a raster with its attribute table in R?










share|improve this question































    0















    I fix a species distribution model and predict the suitable habitat using this model, and then I got a map plotted in R.



    I tried to save this prediction as a raster, using code:



    rf<-writeRaster(px, filename="predict.tif", format="GTiff")


    However, I could only export a tif format file without a attribute table. I could put this raster to Arcgis software, but without a attribute table, it is difficult to run any analysis.



    How can I export a raster with its attribute table in R?










    share|improve this question



























      0












      0








      0








      I fix a species distribution model and predict the suitable habitat using this model, and then I got a map plotted in R.



      I tried to save this prediction as a raster, using code:



      rf<-writeRaster(px, filename="predict.tif", format="GTiff")


      However, I could only export a tif format file without a attribute table. I could put this raster to Arcgis software, but without a attribute table, it is difficult to run any analysis.



      How can I export a raster with its attribute table in R?










      share|improve this question
















      I fix a species distribution model and predict the suitable habitat using this model, and then I got a map plotted in R.



      I tried to save this prediction as a raster, using code:



      rf<-writeRaster(px, filename="predict.tif", format="GTiff")


      However, I could only export a tif format file without a attribute table. I could put this raster to Arcgis software, but without a attribute table, it is difficult to run any analysis.



      How can I export a raster with its attribute table in R?







      r attribute-table






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 17 mins ago









      PolyGeo

      53.9k1782246




      53.9k1782246










      asked 47 mins ago









      Lili LiLili Li

      404




      404






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "79"
          };
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2fgis.stackexchange.com%2fquestions%2f318724%2fwriting-raster-with-attribute-table-in-r%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 Geographic Information Systems Stack Exchange!


          • 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%2fgis.stackexchange.com%2fquestions%2f318724%2fwriting-raster-with-attribute-table-in-r%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

          Щит и меч (фильм) Содержание Названия серий | Сюжет |...

          Венесуэла на летних Олимпийских играх 2000 Содержание Состав...

          Meter-Bus Содержание Параметры шины | Стандартизация |...