Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report