univ.desc | R Documentation |
This function returns univariate/descriptive statistics (univ.desc) on a variable within a given data frame, and uses simplified calls within the function to parse the descriptives by another variable.
univ.desc(df, var1, by1)
df |
data frame to read in. |
var1 |
the dependent/outcome variable, |
by1 |
the main independent/predictor variable, |
This function returns the descriptive statistics for var1
in data frame df
. Can be split to return descriptives for var1
in data frame df
, broken out by var2
.
data <- mtcars
univ.desc(data,mpg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.