Skip to content

Commit

Permalink
Added "distinct(Divide, .keep_all = TRUE)" to corr_divides_centroids
Browse files Browse the repository at this point in the history
  • Loading branch information
William Augustine McLean authored and William Augustine McLean committed Oct 22, 2024
1 parent afa2b45 commit 24d84dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/ModelCorrMap.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ ModelCorrMap <- function(x, y = ModelScatterPlot, z = NewDivides){

#Get centroids of divides
corr_divides_centroids <- st_centroid(corr_divides) %>%
st_as_sf()
st_as_sf() %>%
distinct(Divide, .keep_all = TRUE)

#assign("corr_divides_centroids", corr_divides_centroids, envir = .GlobalEnv)

Expand Down

0 comments on commit 24d84dc

Please sign in to comment.