link for the .shp file datasetкак читать .shp файлы в R Tool
Я хочу, чтобы прочитать файл из .shp R инструмент, я использую следующий сценарий:
>scot_LL<-readOGR("C:/Documents and Settings/Admin/Desktop/scotlip/lip cancer/New Scot/scot.shp","scot"),
, но когда я запускаю сценарий, я получение ошибок ниже:
>Error in file(paste(DSN, .Platform$file.sep, layer, ".dbf", sep = ""), <br/>:
cannot open the connection<br/>:
In addition: Warning message:<br/>:
In file(paste(DSN, .Platform$file.sep, layer, ".dbf", sep = ""), :<br/>:
cannot open file 'C:/Documents and Settings/Admin/Desktop/scotlip/lip cancer/New Scot/scot.dbf': No such file or directory
Не могли бы вы помочь мне.
> scot_mp <- readShapeSpatial ('C:/Documents и Settings/Admin/Desktop/scotlip/рак губ/новый scot1/scot.shp') > Ошибка в getinfo.shape (fn): Ошибка открытия файла SHP –
@vinoradha Я предполагаю, что два других файла ('scot.dbf, scot.shx') не находятся в вашей папке. – Arpi