Error in eval(lhs, parent, parent) : object 'countries_sf' not found >

耗尽温柔 提交于 2021-01-29 11:47:35

问题


When I tried to run the code, for some reason, one of the objects "not found".

I tried to chance the name, run again, but it's always the same error.

The code:

countries_sf <- countries110 %>%
  st_as_sf()

pop_palette <- colorNumeric("viridis",
                            domain = countries_sf$gdp_md_est)

countries_sf %>%
  filter(! name == "Antarctica") %>%
  leaflet() %>%

the error message:

Error in eval(lhs, parent, parent) : object 'countries_sf' not found

来源:https://stackoverflow.com/questions/56471516/error-in-evallhs-parent-parent-object-countries-sf-not-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!