stattable {metools}R Documentation

Descritive statistic table

Description

stattable make a descritive statistic table.

Usage

stattable(data, horiz = FALSE, translate = FALSE)

Arguments

data

a dataframe

horiz

defines table be a horizontal table (default=FALSE)

translate

if TRUE translate table to PT-BR (default=FALSE)

Value

Return a dataframe with descritive statistics.

Examples

v=data.frame(dataone=c(3,2,5,6,5,4),datatwo=c(33,22,55,66,55,44)
,datathree=c(133,122,155,166,155,144))
stattable(v) #vertical table
stattable(v,translate=TRUE) #vertical table translated
stattable(v,horiz=TRUE) #horizontal table
stattable(v,horiz=TRUE,translate=TRUE) #horizontal table translated


[Package metools version 1.0.0 Index]