Skip to content
Snippets Groups Projects
removeDuplicatedWord.Rd 670 B
Newer Older
Arnaud Duvermy's avatar
Arnaud Duvermy committed
% Generated by roxygen2: do not edit by hand
Arnaud Duvermy's avatar
Arnaud Duvermy committed
% Please edit documentation in R/utils.R
Arnaud Duvermy's avatar
Arnaud Duvermy committed
\name{removeDuplicatedWord}
\alias{removeDuplicatedWord}
\title{Remove Duplicated Words from Strings}
\usage{
removeDuplicatedWord(strings)
}
\arguments{
\item{strings}{A character vector containing strings with potential duplicated words.}
}
\value{
A character vector with duplicated words removed from each string.
}
\description{
This function takes a vector of strings and removes duplicated words within each string.
}
\examples{
words <- c("hellohello", "worldworld", "programmingprogramming", "R isis great", "duplicateeee1333")
Arnaud Duvermy's avatar
Arnaud Duvermy committed
cleaned_words <- removeDuplicatedWord(words)
}