trim {strings} R Documentation

Removes all leading and trailing occurrences of a set of characters specified

Description

in an array from the current System.String object.

Usage

trim(strings,
    characters = " ");

Arguments

strings

a character vector. [as string]

characters

An array of Unicode characters to remove, or null.

env

[as Environment]

Details

Authors

SMRUCC genomics Institute

Value

The string that remains after all occurrences of the characters in the trimChars parameter are removed from the start and end of the current string. If trimChars is null or an empty array, white-space characters are removed instead. If no characters can be trimmed from the current instance, the method returns the current instance unchanged.

clr value class

Examples


[Package strings version 2.33.856.6961 Index]