Learn R Programming

eye (version 1.2.1)

reveal: reveal

Description

Shows commonly used summary statistics

Usage

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

Value

data frame

Details

Character vectors (or character columns) will be removed.

See Also

Other revealer: reveal_methods, reveal_split()

Examples

Run this code
# NOT RUN {
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")
# }

Run the code above in your browser using DataLab