grab_desired_aligned_columns: Fetches the left-aligned/right-aligned data columns for...

View source: R/all_digit_test_helper_functions.R

grab_desired_aligned_columnsR Documentation

Fetches the left-aligned/right-aligned data columns for analysis, drop the first and last digit places if desired

Description

Fetches the left-aligned/right-aligned data columns for analysis, drop the first and last digit places if desired

Usage

grab_desired_aligned_columns(
  digitdata,
  data_columns,
  skip_first_digit = FALSE,
  skip_last_digit = FALSE,
  align_direction = "left",
  digit_places = 0
)

Arguments

digitdata

A object of class DigitAnalysis.

data_columns

The names of numeric columns of data to be analyzed. Default can be 'all', where using all data columns in numbers df in digitdata; an array of column names, as characters; a single column name, as character.

skip_first_digit

TRUE or FALSE: If TRUE, skip first digit place before analysis. Default to FALSE.

skip_last_digit

TRUE or FALSE: If TRUE, skip last digit place before analysis, since we don't want tests to overlap. Default to FALSE. skip_last_digit should overwrite digit_places and skip_first_digits.

align_direction

'left' or 'right': specify whether left-aligned or right-aligned digits table to be returned

digit_places

Only used internally for checking if it is last digit test

Value

A list with

  • digits_table The left-aligned/right-aligned digits table for data_columns

  • digitdata The DigitAnalysis object with slot 'max' updated


jlederluis/digitanalysis documentation built on Nov. 5, 2023, 11:46 a.m.