numberReplicates: numberReplicates: Number Recurring Elements

Description Usage Arguments Value Author(s)

Description

numberReplicates numbers instances of each non-unique value in the order found numberReplicates

Usage

1
numberReplicates(x, number.NAs = FALSE)

Arguments

x

a vector that includes non-unique elements

number.NAs

logical; if TRUE, missing values will be numbered; otherwise, return an NA for each missing value

Value

returns a numeric vector where replicates of each unique value in x are numbered from 1 to the number of replicates found in the order in which they are found in x. The replicate numbers returned correspond to the elements of x as it was passed in.

Author(s)

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


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