Learn R Programming

sasLM (version 0.6.0)

tsum0: Table Summary 0 independent(x) variable

Description

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

Usage

tsum0(d, y, e=c("mean", "sd", "length"), repl=list(c("length"), c("n")))

Arguments

d

a data.frame or matrix with colnames

y

y variable name, a continuous variable

e

a vector of summarize function names

repl

list of strings to replace after summarize. Length of list should be 2, and both should have the same length.

Value

A vector of summarized values

Details

A convenient summarization function for a continuous variable.

See Also

tsum, tsum1, tsum2, tsum3

Examples

Run this code
# NOT RUN {
tsum0(CO2, "uptake")
tsum0(CO2, "uptake", repl=list(c("mean", "length"), c("Mean", "n")))
# }

Run the code above in your browser using DataLab