Learn R Programming

faux (version 1.2.1)

get_params: 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 )

Value

a tbl of correlations, means and sds

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)

Examples

Run this code
get_params(iris, "Species")

Run the code above in your browser using DataLab