Re: [R] Apply a function according to factor levels.

2012-08-16 Thread li li
t; #1 1 0.033556 > #2 2 0.011120 > #3 3 0.017750 > #4 4 0.030220 > #5 5 0.062060 > A.K. > > - Original Message - > From: li li > To: r-help > Cc: > Sent: Thursday, August 16, 2012 9:31 PM > Subject: [R] Apply a function acco

Re: [R] Apply a function according to factor levels.

2012-08-16 Thread arun
: r-help Cc: Sent: Thursday, August 16, 2012 9:31 PM Subject: [R] Apply a function according to factor levels. Dear all,   I have a question on applying a function to the data according to factor levels. For example, for the data below, what is the best way to apply a function to "values

Re: [R] Apply a function according to factor levels.

2012-08-16 Thread Rui Barradas
From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of li li Sent: Thursday, August 16, 2012 8:31 PM To: r-help Subject: [R] Apply a function according to factor levels. Dear all, I have a question on applying a function to the data according to factor levels.

Re: [R] Apply a function according to factor levels.

2012-08-16 Thread David L Carlson
li li > Sent: Thursday, August 16, 2012 8:31 PM > To: r-help > Subject: [R] Apply a function according to factor levels. > > Dear all, >I have a question on applying a function to the data according to > factor > levels. > For example, for the data below, what is

[R] Apply a function according to factor levels.

2012-08-16 Thread li li
Dear all, I have a question on applying a function to the data according to factor levels. For example, for the data below, what is the best way to apply a function to "values" according to different levels of "samples" (1,2,3,4,5)? values ind sample 1 0.03325 1 1 2 0.03305 1