compute_su_y_caff__energy__shot_sum: Compute "Caffeine Use Questionnaire [Youth] (Energy shot):...

View source: R/scores_su.R

vars_su_y_caff__energy__shotR Documentation

Compute "Caffeine Use Questionnaire [Youth] (Energy shot): Sum [Validation: None]"

Description

Computes the summary score su_y_caff__energy__shot_sum Caffeine Use Questionnaire [Youth] (Energy shot): Sum [Validation: None]

  • Summarized variables:

    • su_y_caff__energy__shot_001__01

    • su_y_caff__energy__shot_001__02

  • Excluded values: none

  • Validation criterion: none

Usage

vars_su_y_caff__energy__shot

compute_su_y_caff__energy__shot_sum(
  data,
  name = "su_y_caff__energy__shot_sum",
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the new column to be created (Default: the name used in the ABCD data release).

combine

logical. If TRUE, the new column will be bound to the input data frame. If FALSE, the new column will be created as a new data frame.

Format

vars_su_y_caff__energy__shot is a character vector of all column names used to compute compute_su_y_caff__energy__shot_sum.

Value

tbl. The input data frame with the summary score appended as a new column.


ABCDscores documentation built on Sept. 11, 2025, 5:08 p.m.