Problems in reading shapefile in R with shapefile function

Roman Numerals equation 1

Incorporating research and background: How much is too much?

If I delete my router's history can my ISP still provide it to my parents?

Citing paywalled articles accessed via illegal web sharing

Would a National Army of mercenaries be a feasible idea?

Could a phylactery of a lich be a mirror or does it have to be a box?

Can making a creature unable to attack after it has been assigned as an attacker remove it from combat?

Is a debit card dangerous in my situation?

Why would the Pakistan airspace closure cancel flights not headed to Pakistan itself?

How to say "Brexit" in Latin?

What is the purpose of easy combat scenarios that don't need resource expenditure?

Writing a character who is going through a civilizing process without overdoing it?

One Half of Ten; A Riddle

Dilemma of explaining to interviewer that he is the reason for declining second interview

Who is this Ant Woman character in this image alongside the Wasp?

Why has the mole been redefined for 2019?

Why avoid shared user accounts?

How can my powered armor quickly replace its ceramic plates?

If I deleted a game I lost the disc for, can I reinstall it digitally?

How long is the D&D Starter Set campaign?

In Linux what happens if 1000 files in a directory are moved to another location while another 300 files were added to the source directory?

Do authors have to be politically correct in article-writing?

How to count the characters of jar files by wc

Why would space fleets be aligned?



Problems in reading shapefile in R with shapefile function














0















I want to read a shapefile(polyline) into R, using rgdal and raster packages.
The code looks like:



d<-file("/Volumes/Environment_layers/original/WaterRoad/Road.shp")
o<-shapefile(d)


but I got a warning:



Error in (function (classes, fdef, mtable)  : 
unable to find an inherited method for function ‘shapefile’ for signature ‘"file"’


I am new in using R dealing with spatial layers, hoping to solve this problem and learn. Thank you.









share







New contributor




Lili Li is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I want to read a shapefile(polyline) into R, using rgdal and raster packages.
    The code looks like:



    d<-file("/Volumes/Environment_layers/original/WaterRoad/Road.shp")
    o<-shapefile(d)


    but I got a warning:



    Error in (function (classes, fdef, mtable)  : 
    unable to find an inherited method for function ‘shapefile’ for signature ‘"file"’


    I am new in using R dealing with spatial layers, hoping to solve this problem and learn. Thank you.









    share







    New contributor




    Lili Li is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I want to read a shapefile(polyline) into R, using rgdal and raster packages.
      The code looks like:



      d<-file("/Volumes/Environment_layers/original/WaterRoad/Road.shp")
      o<-shapefile(d)


      but I got a warning:



      Error in (function (classes, fdef, mtable)  : 
      unable to find an inherited method for function ‘shapefile’ for signature ‘"file"’


      I am new in using R dealing with spatial layers, hoping to solve this problem and learn. Thank you.









      share







      New contributor




      Lili Li is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I want to read a shapefile(polyline) into R, using rgdal and raster packages.
      The code looks like:



      d<-file("/Volumes/Environment_layers/original/WaterRoad/Road.shp")
      o<-shapefile(d)


      but I got a warning:



      Error in (function (classes, fdef, mtable)  : 
      unable to find an inherited method for function ‘shapefile’ for signature ‘"file"’


      I am new in using R dealing with spatial layers, hoping to solve this problem and learn. Thank you.







      raster shapefile r rgdal





      share







      New contributor




      Lili Li is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Lili Li is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Lili Li is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 mins ago









      Lili LiLili Li

      11




      11




      New contributor




      Lili Li is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Lili Li is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Lili Li is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          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
          });


          }
          });






          Lili Li is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f313999%2fproblems-in-reading-shapefile-in-r-with-shapefile-function%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








          Lili Li is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Lili Li is a new contributor. Be nice, and check out our Code of Conduct.













          Lili Li is a new contributor. Be nice, and check out our Code of Conduct.












          Lili Li is a new contributor. Be nice, and check out our Code of Conduct.
















          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%2f313999%2fproblems-in-reading-shapefile-in-r-with-shapefile-function%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 Содержание Параметры шины | Стандартизация |...