Learn R Programming

sasLM (version 1.0.1)

tsum0: Table Summary with 0 independent (x) variables

Description

Summarize a continuous dependent (y) variable without any independent (x) variable.

Usage

tsum0(d, y, e=c("Mean", "SD", "N"), repl=list(c("length"), c("n")))

Value

A vector of summarized values

Arguments

d

a data.frame or matrix with column names

y

y variable name, a continuous variable

e

a vector of summary function names

repl

a list of strings to replace after summarization. The length of the list should be 2, and both elements should have the same length.

Author

Kyun-Seop Bae k@acr.kr

Details

A convenient summarization function for a continuous variable.

See Also

tsum, tsum1, tsum2, tsum3

Examples

Run this code
  tsum0(CO2, "uptake")
  tsum0(CO2, "uptake", repl=list(c("mean", "length"), c("Mean", "n")))

Run the code above in your browser using DataLab