ruminate: Writer for simple objects.

Description Usage Arguments Details Value Author(s) Examples

View source: R/ruminate.R

Description

Prints out info about an object in english feasable for be inserted in a paper. It is a generic function which means that new printing methods can be easily added for new classes.

Usage

1

Arguments

x

a object

Details

Returns the object in a reasonable way

Value

a string

Author(s)

Marcello Gallucci

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# a numeric variable 
a<-rnorm(100,0,1)
ruminate(a)
ruminate(a,names=c("mean","s.d."))

# a factor
a<-factor(rep(1:2,15))
levels(a)<-c("Black","Yellow")
ruminate(a)
levels(a)<-c("Male","Female")
ruminate(a,plural=T)

# a table
a<-table(rep(1:2,15))
names(a)<-c("Black","Yellow")
ruminate(a)
names(a)<-c("Male","Female")
ruminate(a,plural=T)

mcfanda/StatWriter documentation built on May 22, 2019, 3:01 p.m.