Description Usage Arguments Details Examples
View source: R/neater.sumtab.R
returns a summary table froma dataset
1 | neater.sumtab(dataset, interest.vars, summary.vars)
|
dataset |
The dataset containing variables to summarize |
interest.vars |
A list of the numeric variables you want summarized |
summary.vars |
A list of factorial variables you want the interest.vars split by |
Takes a data.frame and summarises the interest.vars by the summary.vars you specify
Outputs a table with columns: 1. Subset, 2 Sample size (N), 3:end summarised variables
Rows: 1. Full data characteristics, 2:end levels of summary.vars
Numeric variables are reported as mean (Sd)
1 2 3 4 | set.seed(695)
x<-data.frame(gl(2,5,labels=c("Level 1", "Level 2")),rnorm(10,4))
names(x)<-c("factor.var","numeric.var")
neater.sumtab(dataset=x, interest.vars="numeric.var", summary.vars="factor.var")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.