Code
bound <- bind_spat_cols(df, df)
Message
New names:
* `a` -> `a...1`
* `b` -> `b...2`
* `a` -> `a...3`
* `b` -> `b...4`
Code
repaired <- tibble::as_tibble(data.frame(a = 1, b = 2, a = 1, b = 2,
check.names = FALSE), .name_repair = "unique")
Message
New names:
* `a` -> `a...1`
* `b` -> `b...2`
* `a` -> `a...3`
* `b` -> `b...4`
Code
res <- bind_spat_cols(aa, data.frame(a = 2))
Message
New names:
* `a` -> `a...1`
* `a` -> `a...2`
Code
# # incompatible size
(expect_error(bind_spat_cols(mtcars)))
Output
<error/rlang_error>
Error in `bind_spat_cols()`:
! Object 1 in `...` is not a <SpatVector>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.