Re: [R] Coding style question

2015-02-17 Thread Duncan Murdoch
On 17/02/2015 11:19 AM, John Posner wrote: In the course of slicing-and-dicing some data, I had occasion to create a list like this: list( subset(my_dataframe, GR1=="XX1"), subset(my_dataframe, GR1=="XX2"), subset(my_dataframe, GR1=="YY"), subset(my_dataframe, GR1 %in% c("XX

[R] Coding style question

2015-02-17 Thread John Posner
In the course of slicing-and-dicing some data, I had occasion to create a list like this: list( subset(my_dataframe, GR1=="XX1"), subset(my_dataframe, GR1=="XX2"), subset(my_dataframe, GR1=="YY"), subset(my_dataframe, GR1 %in% c("XX1", "XX2")), subset(my_dataframe, GR2=="Remi