I have a data frame containing a factor. When I create a subset of this dataframe using subset or another inde