Stop if a data.frame does not have some columns.
check.for.columns(d, must.have)
d
data.frame to check.
must.have
column names to check.
Toby Dylan Hocking