Check that an element exists and is a whole number

check_whole(list, name, required = TRUE)

Arguments

list

list to check

name

element

required

whether the element is required or not