drop levels in eSet pData
1
0
Entering edit mode
8.2 years ago

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

after subseting my eSet dosn't have sample's related to node negative but their level are exist in the data

eSet subsetting • 1.6k views
ADD COMMENT
0
Entering edit mode
8.2 years ago

pData(eset)[ ,"Disease"] <- factor(pData(eset)[ ,"Disease"])

ADD COMMENT
0
Entering edit mode

Thank you andrew.j.skelton

ADD REPLY

Login before adding your answer.

Traffic: 1659 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6