get_params: Get parameters from a data table

View source: R/get_params.R

get_paramsR Documentation

Get parameters from a data table

Description

Generates a table of the correlations and means of numeric columns in a data frame. If data was generated by sim_design and has a "design" attribute, between, within, dv and id are retrieved from that, unless overridden (use between = 0 to

Usage

get_params(
  data,
  between = NULL,
  within = NULL,
  dv = NULL,
  id = NULL,
  digits = 2
)

check_sim_stats(
  data,
  between = NULL,
  within = NULL,
  dv = NULL,
  id = NULL,
  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(s) of the dv, if NULL all numeric columns will be selected

id

the column name(s) of the subject ID, excluded from the table even if numeric

digits

how many digits to round to (default = 2)

Value

a tbl of correlations, means and sds

Examples

get_params(iris, "Species")

faux documentation built on April 20, 2023, 9:13 a.m.