justification: Text Justification

Description Usage Arguments Value Note Examples

Description

left.just - Left justifies a text/character column.

right.just - A means of undoing a left justification.

Usage

1
2
3
  left.just(dataframe, column = NULL, keep.class = FALSE)

  right.just(dataframe)

Arguments

dataframe

A data.frame object with the text column.

column

The column to be justified. If NULL all columns are justified.

keep.class

logical. If TRUE will attempt to keep the original classes of the dataframe if the justification is not altered (i.e. numeric will not be honored but factor may be).

Value

Returns a dataframe with selected text column left/right justified.

Note

left.just inserts spaces to achieve the justification. This could interfere with analysis and therefore the output from left.just should only be used for visualization purposes, not analysis.

Examples

1
2
3
4

trinker/qdap2 documentation built on May 31, 2019, 9:47 p.m.