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 March 21, 2018, 1:04 a.m.