R/duplicated2.R

Defines functions duplicated2

Documented in duplicated2

#'
#'@title
#' same as duplicated but argument to show all duplicates
#'
#'@description
#' same as duplicated but argument to show all duplicates
#'
#'@details
#' same as duplicated but argument to show all duplicates
#'
#'\cr
#'Revision History
#' \tabular{ll}{
#'1.0 \tab 2023 May 12 Created\cr
#'}
#'
#'@author
#'
#'Jacob Strunk <someone@@somewhere.com>
#'
#'
#'@param ... regular arguments to duplicated
#'@param all T/F return all duplicates
#'
#'@return
#'  vector of duplicates
#'
#'@examples
#' something
#'
#'@export
#
#'@seealso \code{\link{duplicated}}\cr

duplicated2 = function(
  ...
  ,all = T
){

  if(all){

    duplicated(...) | duplicated(...,fromLast=T)

  }else{

    duplicated(...)

  }

}
jstrunk001/RForInvt documentation built on April 17, 2025, 5:02 p.m.