Skip to content

Commit

Permalink
Merge pull request #33 from loreabad6/main
Browse files Browse the repository at this point in the history
Allow passing arguments to update_cubble()
  • Loading branch information
huizezhang-sherry committed Aug 12, 2024
2 parents e5db68a + 26a1750 commit 12e62f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ update_cubble <- function(data, key, index, coords, ...){
update_cubble.spatial_cubble_df <- function(data, key = NULL,
index = NULL, coords = NULL, ...){
is_cubble(data)
key <- key_vars(data)
index <- index_var(data)
coords <- coords(data)
key <- key %||% key_vars(data)
index <- index %||% index_var(data)
coords <- coords %||% coords(data)

data |> new_spatial_cubble(key = key, index = index, coords = coords)

Expand Down

0 comments on commit 12e62f9

Please sign in to comment.