Learn R Programming

r4lineups (version 0.1.1)

datacheck1: Helper function

Description

Checks that number of lineup choices contained in a vector is accurate

Usage

datacheck1(lineup_vec, k)

Arguments

lineup_vec

A numeric vector of lineup choices

k

Number of members in lineup

Details

This function ensures that a non-selected lineup member is not accidentally omitted from the dataframe due to lack of selection by all mock witnesses. It functions as a check that the total number of lineup members is accurate.