| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | factor levels |
| From: | yiwu ye <yiwu21111958@yahoo.com> |
| Date: | Thu, 18 Jan 2007 16:38:42 -0800 (PST) |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type; b=NKw8eAvwKCTKUP/NFBB/UNLhLwlrf8LxrQYM3iA5wnPj7w0JhDymjUUrp9Y/JhyrY8TZ+gwGmpfGfGmDgsWnxwkr7K9IcLYg9tCyf1g7KbsLH6+i4Fo14Sbqv4bJd9wsYTIcztGEJopDCpYiE2MgGFXDuD8aM7a/B3Cq0SVUWm8= ; |
|
Dear list, I have the following problem. Could anyone help? x_as.factor(letters[1:5]) x_x[-4] levels(x) The levels(x) still gives you 5 rather than 4 levels. Of course, I can do levels(as.factor(as.character(x)) to get rid of the non-existing factor level. But, I think there must be a simpler way. Thanks Yiwu No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Display a GUI dialog to get a filenam, Michael Camilleri |
|---|---|
| Next by Date: | Re: factor levels, Bill.Venables |
| Previous by Thread: | creating a table composed of smaller tables, Walter R. Paczkowski |
| Next by Thread: | Re: factor levels, Bill.Venables |
| Indexes: | [Date] [Thread] [Top] [All Lists] |