tsum1 | R Documentation |
Summarize a continuous dependent(y) variable with one independent(x) variable.
tsum1(d, y, u, e=c("Mean", "SD", "N"), ou="", repl=list(c("length"), ("n")))
d |
a data.frame or matrix with colnames |
y |
y variable name. a continuous variable |
u |
x variable name, upper side variable |
e |
a vector of summarize function names |
ou |
order of levels of upper side x variable |
repl |
list of strings to replace after summarize. The length of list should be 2, and both should have the same length. |
A convenient summarization function for a continuous variable with one x variable.
A data.frame of summarized values. Row names are from e
names. Column names are from the levels of x variable.
Kyun-Seop Bae k@acr.kr
tsum
, tsum0
, tsum2
, tsum3
tsum1(CO2, "uptake", "Treatment")
tsum1(CO2, "uptake", "Treatment",
e=c("mean", "median", "sd", "min", "max", "length"),
ou=c("chilled", "nonchilled"),
repl=list(c("median", "length"), c("med", "n")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.