An empty data.frame is defined as either NULL or a data.frame with zero rows or columns

empty(df)

Arguments

df

A data.frame or NULL