# Generated by 02-duckplyr_df-methods.R
#' @export
group_trim.duckplyr_df <- function(.tbl, .drop = group_by_drop_default(.tbl)) {
# Our implementation
rel_try(NULL,
# Always fall back to dplyr
"No relational implementation for group_trim()" = TRUE,
{
return(out)
}
)
# dplyr forward
group_trim <- dplyr$group_trim.data.frame
out <- group_trim(.tbl, .drop)
return(out)
# dplyr implementation
.tbl
}
duckplyr_group_trim <- function(.tbl, ...) {
try_fetch(
.tbl <- as_duckplyr_df(.tbl),
error = function(e) {
testthat::skip(conditionMessage(e))
}
)
out <- group_trim(.tbl, ...)
class(out) <- setdiff(class(out), "duckplyr_df")
out
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.