On Wed, Jun 10, 2009 at 2:08 PM, Mohamed lajnef <lajnef@gmail.com> wrote:

> Dear all,
>
> I need to make  a Mean column  by  unique gene, my dabases
>                TragetID  MeanTEM MeanEarly MeanLate
> 6450255      7A5       4.968226  4.953398 4.953113
> 2570615     A1BG      5.128535  5.115278 5.090601
> 6370619     A1BG    4.983317  4.965609 4.978165
> 2600039     A1CF    4.941948  4.970928 4.909220
> 2650615     A1CF    4.999109  4.990280 5.002853
> 5340672     A1CF    4.979658  4.953091 4.975701
> 1090041    A26A1    4.921363  4.984621 4.989640
> 6380561    A26A1   4.976296  4.962460 4.969358
> 7570255    A26B1   4.976480  4.986532 4.978985
> 4920477   A26C1B  4.975744  4.999202 4.990513
>
> How calculate the average for each gene knowing that I have duplicated gene
> ?
>

See ?aggregate.

But you may want to think about whether or not you want to do this.  In some
circumstances, this may be counterproductive.

Sean

	[[alternative HTML version deleted]]

