obj_sum

0th

Percentile

Provide a succinct summary of an object

obj_sum() also includes the size of the object if is_vector_s3() is TRUE.

type_sum() gives a brief summary of object type. Objects that commonly occur in a data frame should return a string with four or less characters.

tbl_sum() gives a brief textual description of a table-like object, which should include the dimensions, the data source, and possible grouping (for dplyr). The default implementation forwards to obj_sum().

Keywords
internal
Usage
obj_sum(x)

type_sum(x)

tbl_sum(x)

is_vector_s3(x)

Arguments
x

an object to summarise. Generally only methods of atomic vectors and variants have been implemented.

Aliases
  • obj_sum
  • type_sum
  • tbl_sum
  • is_vector_s3
Examples
# NOT RUN {
obj_sum(1:10)
obj_sum(matrix(1:10))
obj_sum(Sys.Date())
obj_sum(Sys.time())
obj_sum(mean)
# }
Documentation reproduced from package tibble, version 1.3.4, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.