R/topic-count.R

#' Count
#'
#' The `count` function returns the number of rows in each
#' group.
#'
#' @section Function Name:
#' - `count`
#'
#' @section Arguments:
#' - `*` (required).
#'
#' @examples
#' library(duckdb)
#' con <- dbConnect(duckdb())
#' dbWriteTable(con, "cars", cars)
#'
#' dbGetPlot(con, "
#'   visualize
#'     origin as x,
#'     count(*) as y
#'   from cars
#'   group by
#'     origin
#'   using bars
#' ")
#'
#' @name count
NULL

Try the rsgl package in your browser

Any scripts or data that you put into this service are public.

rsgl documentation built on June 9, 2026, 1:07 a.m.