[R] Chaining multiple replacement functions in R

2014-12-30 Thread Daniel Gabrieli
I cross posted this on Stack Overflow: http://stackoverflow.com/questions/27694466/chaining-multiple-replacement-functions-in-r I am using R to work with a large JS object (using the library rjsonio). As such, I have a lot of nested lists, which are getting somewhat cumbersome to work with. I hav

Re: [R] Chaining multiple replacement functions in R

2014-12-30 Thread Daniel Gabrieli
uncan Murdoch wrote: > On 29/12/2014 4:41 PM, Daniel Gabrieli wrote: > > I cross posted this on Stack Overflow: > > > http://stackoverflow.com/questions/27694466/chaining-multiple-replacement-functions-in-r > > > > > > I am using R to work with a large JS obje

Re: [R] Chaining multiple replacement functions in R

2014-12-30 Thread Daniel Gabrieli
;FirstKey")) rmatch.pos(app, "attr2", rmatch.pos(app, "SecondKey")) rmatch.pos(app, "attr1", rmatch.pos(app, "ERROR")) rmatch.pos(app, "ERROR", rmatch.pos(app, "attr1")) On Tue, Dec 30, 2014 at 1:08 PM, Daniel Gabrieli wrote: >

[R] Question on Counting Factors

2012-04-11 Thread Daniel Gabrieli
Hi, I hope this is not too trivial, but I've had this recurring problem and I think there is super easy solution, just not sure what it is. Please see short example below.  I would like to get the frequency (counts) of all the variables in a single column (that is easy), but I would also like to r