remove_duplicates: remove_duplicates

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

remove duplicates from vector or data frame

Usage

1
remove_duplicates(x, column = 1)

Arguments

x

vector or data frame to remove duplicates from

column

If a data frame is passed in, the column that is used for deduplicating (default = 1)

Value

A character vector or data frame.

Examples

1
2
3
4
5
6
7
hello_string <- c("h", "e", "l", "l", "o")
hello_string
remove_duplicates(hello_string)

df <- data.frame(hello_string, 1:5)
df
remove_duplicates(df)

laurabiggins/runGOA documentation built on July 6, 2020, 12:51 p.m.