s-news
[Top] [All Lists]

Re: Attributes of a dataframe

To: "Treacy, Glenn" <Glenn.Treacy@ILIM.COM>
Subject: Re: Attributes of a dataframe
From: Patrick Burns <pburns@pburns.seanet.com>
Date: Fri, 11 Jul 2008 10:03:03 +0100
Cc: s-news@wubios.wustl.edu
In-reply-to: <D2637554EF7FEA449790DEA8E29A55B806BB0CAD@serv4000.europa.internal>
References: <D2637554EF7FEA449790DEA8E29A55B806BB0CAD@serv4000.europa.internal>
User-agent: Thunderbird 2.0.0.14 (Windows/20080421)
It is a general feature that (most) attributes get
dropped during subscripting.  I think you need
to make your own class of object and write a
subscripting method for the class.


Patrick Burns
patrick@burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of S Poetry and "A Guide for the Unwilling S User")

Treacy, Glenn wrote:

I am using attributes to tag a dataset with meta information. I find that if restrict the columns of my dataset by a command such as

jj.df<-jj.df[,-c(2,6,8)] or jj.df<-jj.df[,c(8,7,9,10)]

that the attributes I set originally are dropped. Can anyone explain why that is and whether I can stop it happening?

Regards and thank you in advance,
Glenn

**********************************************************************************

*Irish Life Investment Managers Limited is authorised by the Financial Regulator. Irish Life Investment Managers Limited Registered Office: Beresford Court, Beresford Place, Dublin 1. Registered in Ireland Number 116000*

While Irish Life Investment Managers uses reasonable efforts to ensure that the information contained in this email is current, accurate and complete at the date of publication, no representations or warranties are made (express or implied) as to the reliability, accuracy or completeness of such information. Irish Life Investment Managers therefore cannot be held liable for any loss arising directly or indirectly from the use of, or any action taken in reliance on, any information contained in this email.

This material is for information only and does not constitute an offer or recommendation to buy or sell any investment, or subscribe to any investment management or advisory service. It is intended for the use of institutional and other professional investors. Past performance is not indicative of future results. The value of funds we manage may fall as well as rise.

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses.

**********************************************************************************


<Prev in Thread] Current Thread [Next in Thread>