is.distinct: Distinctness checker

Description Usage Arguments Examples

View source: R/utilities_func.R

Description

Distinctness checker

Usage

1

Arguments

df

Source dataframe

on

The NSE variable which you want to check the distinctiveness of

Examples

1
2
3
4
5
6
7
8
     test_frame <- data.frame(
             col1 = c("a", "b", "c")
             , col2 = c(1, 1, 2)
             )
      # This part should show TRUE since the test frame is unique on col1
      is.distinct(test_frame, on = col1)
      # This part should show FALSE since the test frame is NOT unique on col2
      is.distinct(test_frame, on = col2)       

JDOsborne1/OSButils documentation built on Jan. 8, 2021, 4:39 p.m.