univ.desc {vannstats} | R Documentation |
Simplified Descriptive Statistics
Description
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.
Usage
univ.desc(df, var1, by1)
Arguments
df |
data frame to read in. |
var1 |
the dependent/outcome variable, |
by1 |
the main independent/predictor variable, |
Value
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
.
Examples
data <- mtcars
univ.desc(data,mpg)
[Package vannstats version 1.5.1.8 Index]