truefalsecounter: Find common elements in vectors

View source: R/truefalsecounter.R

truefalsecounterR Documentation

Find common elements in vectors

Description

This functions allows comparing two vectors to make a vector with true / false values to indicate where the values in vector 1 are present in vector 2. This function can be combined with the 'outlier'-function (use the output of the latter as input for the first) to determine which values in a data set are outliers (TRUE / FALSE rated)

Usage

truefalsecounter(
    data, 
    valuesofinterest
)

Arguments

data

data input, as vector

valuesofinterest

Values to be found in the vector

Examples

truefalsecounter(data = c(1,2,4,7,20), 
  valuesofinterest = behavdata::outliers(data = c(1,2,4,7,20)))

samueltobler/behavdata documentation built on July 9, 2024, 11:33 a.m.