Learn R Programming

statnet.common (version 4.10.0)

despace: A one-line function to strip whitespace from its argument.

Description

A one-line function to strip whitespace from its argument.

Usage

despace(s)

Arguments

s

a character vector.

Examples

Run this code
stopifnot(despace("\n \t  ")=="")

Run the code above in your browser using DataLab