[R] select value from a column depending on a value in another column

2011-05-04 Thread tornanddesperate
Hi everybody I couldn't find the solution to what must be quite a simple problem. Maybe you can help? treatment session period stage wage_accepted market 1 11 11 25 public 2 11 11 19

[R] editor: not possible to change the variable name

2011-05-06 Thread tornanddesperate
Hi again everybody I have I new problem concerning the editor of R. It is possible to add a new variable column, but they all have the name "var1".I read somewhere that it should be possible to change the variable name by clicking on it, but that doesn't work. Is that a bug or how is it possible

[R] how to calculate the mean of a group in a table

2011-05-07 Thread tornanddesperate
Hi its me again I don't mean to get on your nerves, but the use of R proofs to be a bit more complicated than envisaged. I would like to calculate the mean of a group of values, here "wage_accepted". The group is determined by the stage and period, so in the end there should be a column with the

Re: [R] how to calculate the mean of a group in a table

2011-05-10 Thread tornanddesperate
Just wanted to thank everybody here for their great help. I tried the "tapply" and it worked brilliantly. By changing its parameters I can easily compute the values for the other treatments as well. Without help, I probably would just have despaired. Have a great time mat -- View this message in