You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It turns out there is a complexity with exercise 1.10 if you use st_join to assemble the combined sf object. If you use mutate everything will work as expected.
By default st_join will count any two objects as matching that intersect one another. The size of the buffer we added resulted in the buffered circles (polygons) for plot_id's 3 and 7 overlapping at an edge and so the spatial join included a line for plot_id 3 with plot_id 7's information and a line for plot_id 7 with plot_id 3's information. This results in extra points showing up the graphs and incorrect averages.
This can be fixed by adding an optional argument to the spatial joins so that instead of matching objects that intersect it only matches objects that are the same:
It's fine to just submit with the extra points, we'll give that full credit, but if you'd like to fix it with follow the code above or switch to using mutate to build the combined sf object.
The text was updated successfully, but these errors were encountered:
It turns out there is a complexity with exercise 1.10 if you use st_join to assemble the combined sf object. If you use mutate everything will work as expected.
By default st_join will count any two objects as matching that intersect one another. The size of the buffer we added resulted in the buffered circles (polygons) for plot_id's 3 and 7 overlapping at an edge and so the spatial join included a line for plot_id 3 with plot_id 7's information and a line for plot_id 7 with plot_id 3's information. This results in extra points showing up the graphs and incorrect averages.
This can be fixed by adding an optional argument to the spatial joins so that instead of matching objects that intersect it only matches objects that are the same:
It's fine to just submit with the extra points, we'll give that full credit, but if you'd like to fix it with follow the code above or switch to using mutate to build the combined sf object.
The text was updated successfully, but these errors were encountered: