Nothing
reframe()
throws intelligent recycling errorsCode
reframe(df, x = 1:2, y = 3:5)
Condition
Error in `reframe()`:
! Can't recycle `y = 3:5`.
Caused by error:
! `y` must be size 2 or 1, not 3.
i An earlier column had size 2.
Code
reframe(df, x = 1:2, y = 3:5, .by = g)
Condition
Error in `reframe()`:
! Can't recycle `y = 3:5`.
i In group 1: `g = 1`.
Caused by error:
! `y` must be size 2 or 1, not 3.
i An earlier column had size 2.
Code
reframe(gdf, x = 1:2, y = 3:5)
Condition
Error in `reframe()`:
! Can't recycle `y = 3:5`.
i In group 1: `g = 1`.
Caused by error:
! `y` must be size 2 or 1, not 3.
i An earlier column had size 2.
reframe()
doesn't message about regrouping when multiple group columns are suppliedCode
out <- reframe(df, x = mean(x), .by = c(a, b))
Code
out <- reframe(gdf, x = mean(x))
reframe()
doesn't message about regrouping when >1 rows are returned per groupCode
out <- reframe(df, x = vec_rep_each(x, x), .by = g)
Code
out <- reframe(gdf, x = vec_rep_each(x, x))
.by
with grouped-dfCode
reframe(gdf, .by = x)
Condition
Error in `reframe()`:
! Can't supply `.by` when `.data` is a grouped data frame.
.by
with rowwise-dfCode
reframe(rdf, .by = x)
Condition
Error in `reframe()`:
! Can't supply `.by` when `.data` is a rowwise data frame.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.