Josh
Josh
@joshmyers.bsky.social
Got my #rstats Christmas present early, Posit Workbench release has preview support for Positron Pro!
December 20, 2024 at 7:13 AM
Being able to pass an expression with magrittr pipe is a useful pattern. Thoughts?
```
my_fun = function(df, filter_var = NULL) {
df %>% {
if(!is.null(filter_var)) {
filter(., Species == filter_var)
}
}%>%
group_by(Species) |>
summarise(n = n())
}
x = my_fun(iris, "setosa")
```
December 11, 2024 at 1:10 AM
How do you name your #rstats lazy dataframes? I use ‘_ldf’ suffix for lazy and ‘_df’ for collected. I’ve also seen prefix ‘qu_’ (query) for lazy and then ‘df_’ for collected. Interested to hear other conventions.
December 1, 2024 at 11:55 PM
Is there a way to get a list of R functions that have translations for a specific dbplyr backend? I usually just trial and error it, but it would be good to be able to look it up. #rstats
November 22, 2024 at 5:27 AM