isid: A Stata-esque function for asserting an id variable is...

Description Usage Arguments

View source: R/isid.R

Description

Based on the Stata function of the same name, this function asserts whether rows of a dataframe are unique, and if they are not, it will throw an error and, when sourced, will stop the sourced script code from running any further.

Usage

1
isid(x)

Arguments

x

Input the ID to be checked for duplicates. Can be a single variable, or multiple.


gcpsresearch/refuns documentation built on June 23, 2020, 11:02 a.m.