Skip to contents

This function takes a vector of strings and removes duplicated words within each string.

Usage

removeDuplicatedWord(strings)

Arguments

strings

A character vector containing strings with potential duplicated words.

Value

A character vector with duplicated words removed from each string.

Examples

words <- c("hellohello", "worldworld", "programmingprogramming", "R isis great", "duplicateeee1333")
cleaned_words <- removeDuplicatedWord(words)