Skip to content

Commit

Permalink
remove df |> as.data.frame()
Browse files Browse the repository at this point in the history
  • Loading branch information
joyliujoyliu committed Jul 2, 2024
1 parent cb1b778 commit 191335e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion R/leaflet_graph.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
leaflet_graph <- function(station_spatial) {
geometry<- NULL
df <- station_spatial |> tidyr::extract(geometry, c('lon', 'lat'), '\\((.*), (.*)\\)', convert = TRUE)
df |> as.data.frame()
numPal <- leaflet::colorNumeric('viridis', df $Detections)
leaflet::leaflet(data = df) |>
leaflet::addTiles() |>
Expand Down

0 comments on commit 191335e

Please sign in to comment.