get_params Generates a table of the correlations and means of numeric columns in a data frame

get_params(data, between = c(), within = c(), dv = "y", id = "id",
  digits = 2)

check_sim_stats(data, between = c(), within = c(), dv = "y",
  id = "id", digits = 2)

Arguments

data

the existing tbl

between

a vector of column names for between-subject factors

within

a vector of column names for within-subject factors (if data is long)

dv

the column name of the dv (if data is long)

id

the column name(s) of the subject ID (if data is long)

digits

how many digits to round to (default = 2)

Value

a tbl of correlations, means and sds

Examples

get_params(iris, "Species")
#> # A tibble: 12 x 9 #> # Groups: Species [3] #> Species n var Sepal.Length Sepal.Width Petal.Length Petal.Width mean #> <fct> <dbl> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 setosa 50 Sepa… 1 0.74 0.27 0.28 5.01 #> 2 setosa 50 Sepa… 0.74 1 0.18 0.23 3.43 #> 3 setosa 50 Peta… 0.27 0.18 1 0.33 1.46 #> 4 setosa 50 Peta… 0.28 0.23 0.33 1 0.25 #> 5 versic… 50 Sepa… 1 0.53 0.75 0.55 5.94 #> 6 versic… 50 Sepa… 0.53 1 0.56 0.66 2.77 #> 7 versic… 50 Peta… 0.75 0.56 1 0.79 4.26 #> 8 versic… 50 Peta… 0.55 0.66 0.79 1 1.33 #> 9 virgin… 50 Sepa… 1 0.46 0.86 0.28 6.59 #> 10 virgin… 50 Sepa… 0.46 1 0.4 0.54 2.97 #> 11 virgin… 50 Peta… 0.86 0.4 1 0.32 5.55 #> 12 virgin… 50 Peta… 0.28 0.54 0.32 1 2.03 #> # … with 1 more variable: sd <dbl>