DS4PS / cpp-527-fall-2020

http://ds4ps.org/cpp-527-fall-2020/
0 stars 1 forks source link

Lab 06- Request Failed after 3 attempts #42

Open Mkulbida opened 3 years ago

Mkulbida commented 3 years ago

Hi Dr Lecy @lecy

I am trying to create a loop for all of the state shapefiles and am running into the below error that I haven't been able to figure out after scouring the internet for several hours. I'm not even sure if I'm on the right track with the loop since the example mentioned in the lab about the DC data looks like it has very different code for how he set up the loop...

image

Thank you!

lecy commented 3 years ago

The code is different from how the DC example was set up. That was just an example of another case where loops have been used to systematically transform assets from one inconvenient data (or object) type to one that makes the asset easier to utilize.

In this case shapefiles + data are hard to use since the shapefile convention requires data split between five files and also separate from the data. The geojson format not only combines the GIS shapefiles plus data, a geojson file can also be read directly from GitHub with one line of code.

What do you expect line 83 to return, and what is it actually returning?

What are allowable data types within the subset [] operator?