File: duplicated2.R

package info (click to toggle)
gdata 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 964 kB
  • sloc: sh: 27; makefile: 15
file content (8 lines) | stat: -rw-r--r-- 197 bytes parent folder | download
1
2
3
4
5
6
7
8
duplicated2 <- function(x, bothWays=TRUE, ...)
{
  if(!bothWays) {
    return(duplicated(x, ...))
  } else if(bothWays) {
    return((duplicated(x, ...) | duplicated(x, fromLast=TRUE, ...)))
  }
}