Learn R Programming

statnet.common (version 4.3.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
# NOT RUN {
stopifnot(despace("\n \t  ")=="")
# }

Run the code above in your browser using DataLab