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
I'm not sure if this will be fixed with tidyverse/dplyr#3433. Also, I don't understand why the second example gives a warning. Thanks @Romanik!
library(tidyverse)
dbplyr::memdb_frame(a=1, b=2) %>%
summarize_all(~mean(.))
#> Error in mean(.): object 'a' not founddbplyr::memdb_frame(a=1, b=2) %>%
summarize_all(mean)
#> Warning: Missing values are always removed in SQL.#> Use `AVG(x, na.rm = TRUE)` to silence this warning#> Warning: Missing values are always removed in SQL.#> Use `AVG(x, na.rm = TRUE)` to silence this warning#> # Source: lazy query [?? x 2]#> # Database: sqlite 3.22.0 [:memory:]#> a b#> <dbl> <dbl>#> 1 1 2dbplyr::memdb_frame(a=1, b=2) %>%
summarize_if(funs(is.numeric), ~mean(.))
#> Applying predicate on the first 100 rows#> Error in mean(.): object 'a' not found
I'm not sure if this will be fixed with tidyverse/dplyr#3433. Also, I don't understand why the second example gives a warning. Thanks @Romanik!
The text was updated successfully, but these errors were encountered: