fw: Fixed width strings

View source: R/fw.R

fwR Documentation

Fixed width strings

Description

Adjust the length of a character string by by adding spaces to the end if too short, or by cutting from the end if too long.

Usage

fw(string = "12345678910", n = 10)

Arguments

string

Text to adjust. Use a list or vector for multipe text strings.

n

Number of characters for string. If negative, string will be shortened by n characters.

Examples

fw(c("2short", "cutThisString"), n = 10)

dKvale/receptors documentation built on June 26, 2022, 7:20 a.m.