ch.getMoralsItemsInAllOverlaps: A function to get an ordered, non-duplicate list of the...

View source: R/ch.getMoralsItemsInOverlap.r

ch.getMoralsItemsInAllOverlapsR Documentation

A function to get an ordered, non-duplicate list of the combinations of Items for each overlap

Description

This function outputs a list containing: 1) a dataframe containing an ordered, non-duplicate combinations of Items for each overlap, and 2) a dataframe containing the number of non-duplicate combinations of items for each overlap.

Usage

ch.getMoralsItemsInAllOverlaps(data, overlapCol, itemCols)

Arguments

data

a dataframe.

overlapCol

a string specifying the name of the column in the dataframe containing the overlap variable.

itemCols

a vector containing strings that specify the names of the columns in the dataframe containing the item variables.

Value

a list containing: 1) a dataframe containing an ordered, non-duplicate combinations of Items for each overlap, and 2) a dataframe containing the number of non-duplicate combinations of items for each overlap.

Examples

ch.getItemsInAllOverlaps (df, "overlapRound", c("Item1", "Item2"))

ccpluncw/ccpl_R_chMorals documentation built on Feb. 4, 2024, 3:30 p.m.