Re: [R] help with "by" function

2015-05-12 Thread DIGHE, NILESH [AG/2362]
with "by" function Nilesh, I found a couple errors in your code. First, in your by() statement you have a function to operate on the selected subset of data, which you refer to as x but then, in your aov statement you refer to data_set not x Second, your funC() stat

Re: [R] help with "by" function

2015-05-12 Thread Adams, Jean
Nilesh, I found a couple errors in your code. First, in your by() statement you have a function to operate on the selected subset of data, which you refer to as x but then, in your aov statement you refer to data_set not x Second, your funC() statement is a function of trait_

[R] help with "by" function

2015-05-12 Thread DIGHE, NILESH [AG/2362]
Hi, I have an anonymous function called function(x) that will run anova, run HSD.test on the model, and then sort the results. I am passing this anonymous function to the "by" function to get results by "Isopair" factor which is my index variable. Since I want to run the anova on multiple depe