qdap (version 2.4.6)

left_just: Text Justification

Description

left_just - Left justifies a text/character column.

right_just - A means of undoing a left justification.

Usage

left_just(dataframe, column = NULL, keep.class = FALSE)

right_just(dataframe)

Value

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

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).

Examples

Run this code
if (FALSE) {
left_just(DATA)
left_just(DATA, "state")
left_just(CO2[1:15,])
right_just(left_just(CO2[1:15,]))
}

Run the code above in your browser using DataLab