keepLastN: Truncate to keep only the _last_ N characters.

View source: R/utils.R

keepLastNR Documentation

Truncate to keep only the last N characters.

Description

Truncate an element, or each element of a vector, by removing all but the last N characters of each element.

Usage

keepLastN(x, n)

Arguments

x

A vector whose element(s) will be truncated.

n

An integer specifying the number of characters to keep.

Author(s)

Caitlin Collins caitiecollins@gmail.com


caitiecollins/treeWAS documentation built on March 9, 2024, 3:15 p.m.