Get the App
SLTechnology News&Howtos  ›  Development  › 

How does avereps take the mean according to the same ID?

Shulou Source: shulou.com Published: 2022-06-01 04:58:42 11月14日 Update

This article mainly explains "how to take the average value of avereps according to the same ID". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to take the average value of avereps according to the same ID".

Aggregate can deal with data packets.

The limma package provides a function avereps that can mean the data of the same ID, and the identified input data can be matrix,MAList or EList, the latter two of which involve the standardization process of chip data. Here only describes how to deal with matrix data.

The specified data are as follows: the same type takes the mean

> dat type Num1 Num21 A 90 892 B 34 323 C 56 534 D 99 955 E 15 106 A 50 447 B 20 138 C 24 169 D 70 6110 E 14 4

For all data except type column, classify ID according to type, take the mean, the result:

> avereps (dat [,-1], ID=dat$type) Num1 Num2A 70.0 66.5B 27.022.5C 40.0 34.5D 84.578.0E 14.57.0 so far, I believe you have a deeper understanding of "how to take the mean value of avereps according to the same ID". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Data mean same content processing learning practical deeper interest function practicality practical simple operation method more friends standards results websites chips Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft MariaDB Shulou Tech Info Shulou Information Shulou Technology