Debian Codegraph @

man/tbl_sum.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/tbl-sum.R
3 \name{tbl_sum}
4 \alias{tbl_sum}
5 \title{Provide a succinct summary of an object}
6 \usage{
7 tbl_sum(x)
8 }
9 \arguments{
10 \item{x}{Object to summarise.}
11 }
12 \value{
13 A named character vector, describing the dimensions in the first element
14 and the data source in the name of the first element.
15 }
16 \description{
17 \code{tbl_sum()} gives a brief textual description of a table-like object,
18 which should include the dimensions and the data source in the first element,
19 and additional information in the other elements (such as grouping for \pkg{dplyr}).
20 The default implementation forwards to \code{\link[=obj_sum]{obj_sum()}}.
21 }
22 \examples{
23 tbl_sum(1:10)
24 tbl_sum(matrix(1:10))
25 tbl_sum(data.frame(a = 1))
26 tbl_sum(Sys.Date())
27 tbl_sum(Sys.time())
28 tbl_sum(mean)
29
30 }
31 \seealso{
32 \code{\link[=type_sum]{type_sum()}}
33 }