Code
bound <- bind_cols(df, df)
Message
New names:
* `a` -> `a...1`
* `b` -> `b...2`
* `a` -> `a...3`
* `b` -> `b...4`
Code
df <- bind_cols(list(1, 2))
Message
New names:
* `` -> `...1`
* `` -> `...2`
Code
# # incompatible size
(expect_error(bind_cols(a = 1:2, mtcars)))
Output
<error/vctrs_error_incompatible_size>
Error in `bind_cols()`:
! Can't recycle `a` (size 2) to match `..2` (size 32).
Code
(expect_error(bind_cols(mtcars, a = 1:3)))
Output
<error/vctrs_error_incompatible_size>
Error in `bind_cols()`:
! Can't recycle `..1` (size 32) to match `a` (size 3).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.