Re: [R] Basic structure operations doubt

2010-10-18 Thread Joshua Wiley
Original Message- > From: Joshua Wiley [mailto:jwiley.ps...@gmail.com] > Sent: 18 October 2010 07:47 > To: Santosh Srinivas > Cc: r-help@r-project.org > Subject: Re: [R] Basic structure operations doubt > > Hi, > > The easiest way to get rid of the empty levels is with droplevels

Re: [R] Basic structure operations doubt

2010-10-17 Thread Santosh Srinivas
Wiley [mailto:jwiley.ps...@gmail.com] Sent: 18 October 2010 07:47 To: Santosh Srinivas Cc: r-help@r-project.org Subject: Re: [R] Basic structure operations doubt Hi, The easiest way to get rid of the empty levels is with droplevels(). See ?droplevels for details. It actually has a method for data frames

Re: [R] Basic structure operations doubt

2010-10-17 Thread Joshua Wiley
Hi, The easiest way to get rid of the empty levels is with droplevels(). See ?droplevels for details. It actually has a method for data frames even. So you could just do something like: Indx_Constituents <- droplevels(Indx_Constituents) or whatever your data frame was called and it will drop a

[R] Basic structure operations doubt

2010-10-17 Thread Santosh Srinivas
I'm doing these manipulations on the data frame and wondering why does R have to remember historical data on my operation and not just keep the needed info. Probably a basic fundamentals of the way R handles data .. Pls point me to the manual if possible .. I have this Index data: > head(NIFTY_IND