get_item_df: Get data frame with survey items that strongly diverge from...

View source: R/get_item_df.R

get_item_dfR Documentation

Get data frame with survey items that strongly diverge from their reference group

Description

Get data frame with survey items that strongly diverge from their reference group

Usage

get_item_df(
  df,
  n_items = 8L,
  cutoff = NULL,
  excluded_reports = c("M_ED", "FGR", "SZMA")
)

Arguments

df

Data frame with data for one report_nr

n_items

Number of items to retrieve for each degree

cutoff

Optional, when provided n_items is ignored. Keeps all rows where distance in standard deviation is equal to or larger than the cutoff.

excluded_reports

Character vector containing values for report_type_id that should be excluded.

Value

Data frame


RichardMeyer-Eppler/Datenreport2022 documentation built on May 22, 2022, 1:55 p.m.