align_digits: Align the digits from the left/right of a data column and...

View source: R/data_input_functions.R

align_digitsR Documentation

Align the digits from the left/right of a data column and update it to the specified data frame

Description

Align the digits from the left/right of a data column and update it to the specified data frame

Usage

align_digits(
  indata,
  outdata,
  naming_method,
  col_name,
  align_direction = "left"
)

Arguments

indata

The data column to be turned into aligned digits dataframe

outdata

The dataframe indata will be appended (cbind) to

naming_method

Either left_aligned_column_names or right_aligned_column_names from DigitAnalysis class

col_name

Column name for indata

align_direction

'left' or 'right': Create left-aligned or right-aligned digits

Value

outdata: outdata appended with indata's aligned digits


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