Check for Required Elements Existing in an Object
has_required_names(x, required_names)
A list with two elements: 1) rqmt_ok
which is TRUE
if
the requirement is fulfilled and FALSE
otherwise; 2)
err_message
, the body of an error message to be used by the calling
function (mentions all problematic elements)
Any object for which names
returns a character vector
Character vector of names required to be in
names(x)