I have an Eset that containing factors in its pData. When I create a subset of this eSet a new eSet is created. However, the factor variable retains all of its original levels , even when they do not exist in the new eSet , how I could drop this levels?
table(pData(eset)[ ,"Disease"])
these are the levels : control node negative breast cancer node positive breast cancer
but after subseting my eSet dosn't have sample's related to node negative but their level are exist in the data