remove.spaces: This removes spaces from a character vector

Description Usage Arguments Value References Examples

View source: R/fsthet.R

Description

This removes spaces from a before and after words in a character vector. It was adapted from a similar function in adegenet.

Usage

1
remove.spaces(charvec)

Arguments

charvec

is a vector of characters containing spaces to be removed.

Value

charvec

A vector of characters without spaces

References

http://adegenet.r-forge.r-project.org/

Examples

1
2
charvec<-c("this ", " is"," a"," test")
remove.spaces(charvec)

fsthet documentation built on Nov. 17, 2017, 4:23 a.m.