Exclude variables from a list of objects of the same type
excludeFromList(x, exclude)
x
A list of objects of the same type.
exclude
A character vector of names of variables to exclude.