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
I've been using inner_join in #10 and now #54's second geodata packages example. This means that regions will only be represented if they are in the plot data and the reference data. And I've kind of tried to convince myself that this is what you want, but maybe that is motivated and mostly because of this full_join error that is popping up. Interestingly, anti_join which gives you the reference data regions, but not the plot data regions, works!
library(tidyverse)
nc_ref<-sf::st_read(system.file("shape/nc.shp", package="sf")) |>
select(county_name=NAME, fips=FIPS) %>%
ggplot2::StatSf$compute_panel(coord=ggplot2::CoordSf) |>ggplot2::StatSfCoordinates$compute_group(coord=ggplot2::CoordSf)# sf object preserves geometry column on save
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been using inner_join in #10 and now #54's second geodata packages example. This means that regions will only be represented if they are in the plot data and the reference data. And I've kind of tried to convince myself that this is what you want, but maybe that is motivated and mostly because of this full_join error that is popping up. Interestingly, anti_join which gives you the reference data regions, but not the plot data regions, works!
inner join as compute
Full join compute fails
Antijoin compute doesn't error
Created on 2024-11-15 with reprex v2.1.0
Beta Was this translation helpful? Give feedback.
All reactions