base: a subset method for dataframe