summ {epicalc} | R Documentation |
Summary data as table. Summary a variable with statistics and graph
summ(x=.data, by=NULL, graph=TRUE, box=FALSE)
x |
'x' can be a data frame or a vector. 'summ()' is the same as 'summ(.data)' |
by |
a stratification variable, valid only when x is a vector |
graph |
automatic plot of a sorted dot chart if 'x' is a vector |
box |
add a boxplot to the graph (by=NULL) |
For data frames, 'summ' gives basic statistics of each variable in the data frame. The other arguments are ignored.
For single vectors, a sorted dot chart is also provided, if graph=TRUE (default).
Virasakdi Chongsuvivatwong <cvirasak@medicine.psu.ac.th>
'summary', 'use', 'des'
data(Oswego) .data <- Oswego attach(.data) # The above lines generate a hypothetical data frame. # In reality, one just exploits 'use("Oswego.rec")', if the file is available. summ() summ(age) summ(age, box=TRUE) summ(age, by=sex)