House.Points <- readOGR("Camden_house_sales")
时间: 2024-03-07 07:49:45 浏览: 14
这段代码无法运行,因为readOGR函数需要指定文件格式和文件路径。你需要在函数中加入文件格式和文件路径参数,例如:
```R
House.Points <- readOGR(dsn = "path/to/Camden_house_sales.shp", layer = "Camden_house_sales")
```
其中,dsn参数指定文件路径,layer参数指定数据图层名称。这段代码的作用是读取Camden_house_sales.shp文件中的数据,并将其存储在House.Points对象中。 House.Points对象将包含该文件中的点状空间数据和属性数据。
相关问题
House.Points <- readOGR(dsn = "path/to/Camden_house_sales.shp", layer = "Camden_house_sales")
这段代码的作用是读取Camden_house_sales.shp文件中的数据,并将其存储在House.Points对象中。其中,dsn参数指定文件路径,layer参数指定数据图层名称。readOGR函数是rgeos包中的一个函数,用于读取各种空间数据格式文件,包括ESRI Shapefile、GeoJSON等。读取成功后,House.Points对象将包含Camden_house_sales.shp文件中的点状空间数据和属性数据。
Output.Areas <- readOGR("Camden_oa11")
这段代码无法运行,因为readOGR函数需要指定文件格式和文件路径。你需要在函数中加入文件格式和文件路径参数,例如:
```R
Output.Areas <- readOGR(dsn = "path/to/Camden_oa11.shp", layer = "Camden_oa11")
```
其中,dsn参数指定文件路径,layer参数指定数据图层名称。这段代码的作用是读取Camden_oa11.shp文件中的数据,并将其存储在Output.Areas对象中。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![whl](https://img-home.csdnimg.cn/images/20210720083646.png)