samediff: samediff: Find Elements in Common, and Unique To, Two Lists

Description Usage Arguments Value Author(s)

View source: R/samediff.R

Description

samediff returns a list with elements of a and b in common, and unique to each, or numbers of unique elements in such a list.

Usage

1
samediff(a, b, sort = T, na.rm = F, use.arg.names = F, Ns = FALSE)

Arguments

a

a vector or other object that can be treated as a vector OR a two-element list of vectors; if a is a list, all subsequent arguments must be named and b will be ignored. If use.arg.names==TRUE, the names of the list elements will be used to label the output

b

a second vector or other object that can be treated as a vector unless a is a two-element list, in which case b is ignored.

sort

logical; determines whether the elements of A and B will be returned in alphabetical order

na.rm

logical; should missing values be removed from A and B?

use.arg.names

if true, the names of the variables passed in as argumentsa and b to this function will be substituted for the default names "a.only" and "b.only" in the list returned. Default FALSE.

Ns

logical; if TRUE, return a vector of the numbers of item in common and unique to a and b

Value

Author(s)

M.W.Rowe, mwr.stats@gmail.com


mwrowe/microRutils documentation built on June 12, 2021, 2:41 p.m.