Re: [R] store results from loop into a dataframe

2016-01-05 Thread DIGHE, NILESH [AG/2362]
] Cc: r-help@r-project.org Subject: Re: [R] store results from loop into a dataframe If you run each variable individually, you'll discover that the NAs in your data are causing problems. It's up to you to figure out what the best way to handle those missing values for your research

Re: [R] store results from loop into a dataframe

2016-01-05 Thread Sarah Goslee
6 11:20 AM > To: DIGHE, NILESH [AG/2362] > Cc: r-help@r-project.org > Subject: Re: [R] store results from loop into a dataframe > > Leaving aside the question of whether this is the best way to approach your > problem (unlikely), there's a couple of errors in your code involving

Re: [R] store results from loop into a dataframe

2016-01-05 Thread DIGHE, NILESH [AG/2362]
: [R] store results from loop into a dataframe Leaving aside the question of whether this is the best way to approach your problem (unlikely), there's a couple of errors in your code involving indexing. Once fixed, the code demonstrates some errors in your use of HSD.test that will be harde

Re: [R] store results from loop into a dataframe

2016-01-05 Thread Sarah Goslee
Leaving aside the question of whether this is the best way to approach your problem (unlikely), there's a couple of errors in your code involving indexing. Once fixed, the code demonstrates some errors in your use of HSD.test that will be harder for you to deal with. Thanks for the complete reprod

[R] store results from loop into a dataframe

2016-01-05 Thread DIGHE, NILESH [AG/2362]
Dear R users: I am trying to create a function that will loop over three dependent variables in my aov model, and then get the HSD.test for each variable. I like to store the results from each loop in a data frame. When I run my function (funx) on my data (dat), results from only yield gets