Re: [R] spreadsheet-style autoupdating

2009-07-16 Thread Liviu Andronic
Hello Steve, On Thu, Jul 16, 2009 at 2:28 AM, S Ellisons.elli...@lgc.co.uk wrote: Auto-updating sounds hard in R for a 'regular' data frame. You could perhaps define an entirely new class of object and define data entry/indexing methods so that, say, they sought functions in an attribute

[R] spreadsheet-style autoupdating

2009-07-15 Thread Liviu Andronic
Dear all, I am curious whether one can automatically update, say, a column in R, similar to how spreadsheets (Excel, etc.) do? In my specific case I have two columns with logical data, which individually convey different information, although ultimately for a common purpose (flagging for removal).

Re: [R] spreadsheet-style autoupdating

2009-07-15 Thread Liviu Andronic
Hello Patrick, On 7/15/09, Patrick Burns pbu...@pburns.seanet.com wrote: How about something along the lines of: apply(twocolumns, 1, any) This efficiently solves the first part of my question. I will probably content myself with issuing this command each time I update one of the twocolumns;

Re: [R] spreadsheet-style autoupdating

2009-07-15 Thread Charles C. Berry
On Wed, 15 Jul 2009, Liviu Andronic wrote: Hello Patrick, On 7/15/09, Patrick Burns pbu...@pburns.seanet.com wrote: How about something along the lines of: apply(twocolumns, 1, any) This efficiently solves the first part of my question. I will probably content myself with issuing this