This function takes a list and a vector of required keys. It returns TRUE if all the required keys are in the list. Additional keys are allowed.

keys_check(l, req_keys)

Arguments

l

a list

req_keys

a character vector of required keys

Value

A boolean, TRUE if the required keys req_keys are all in list l