reveal: reveal

Description Usage Arguments Details Value See Also Examples

View source: R/reveal.R

Description

Shows commonly used summary statistics

Usage

1
reveal(x, by = NULL, dec = 1, funs = NULL)

Arguments

x

data frame, numeric vector, or list of numeric vectors

by

character vector with the names of the columns. Can be several variables!

dec

how many decimals are displayed

funs

not really meant to be used at the moment - change the Summarizing functions with a named(!) list of functions

Details

Character vectors (or character columns) will be removed.

Value

data frame

See Also

Other revealer: reveal_methods, reveal_split()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
x = y = z = c(rnorm(20), NA)
mylist <- list(x = x, y = y, z = z)
## vectors
reveal(x)
reveal(1:10)
## named or unnamed list
reveal(mylist)
set.seed(42)
mydf <- cbind(group = rep(letters[1:3], 4),
setNames(as.data.frame(replicate(c(rnorm(11), NA), n = 3)), letters[24:26]))
## data frames
reveal(mydf)
## data frames by group
reveal(mydf, by = "group")

eye documentation built on Sept. 5, 2021, 5:25 p.m.