You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
juice() should always return the same number of rows as the template #411
In the case of juice() where no terms are selected, a tibble with the same number of rows as the template should be returned rather than a completely empty tibble with 0 rows and 0 columns.
suppressPackageStartupMessages(library(recipes))
rec<- recipe(~Sepal.Width, iris) %>%
prep(iris)
# should be 150 rows
juice(rec, all_outcomes())
#> # A tibble: 0 x 0dplyr::select(iris, dplyr::matches("x"))
#> data frame with 0 columns and 150 rows
Created on 2019-11-18 by the reprex package (v0.3.0.9000)
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex https://reprex.tidyverse.org) and link to this issue.
Activity
DavisVaughan commentedon Nov 18, 2019
This also makes it more consistent with dplyr
Created on 2019-11-18 by the reprex package (v0.3.0.9000)
github-actions commentedon Feb 22, 2021
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex https://reprex.tidyverse.org) and link to this issue.