In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about the simple method of merging multiple data sets after specifying the intersection of columns in R language, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.
He has recorded a video to introduce this content before, and his basic need is that he has five data sets, each data set is a gene in each row, each column is a sample, and the value is the expression of the gene. He wants to find the common genes in five data sets, and then merge the five data sets according to the common genes.
My train of thought is
First, the gene names of the five data are intersected, and the gene names are used for each data as the row name. According to the results of the intersection, the data are extracted and finally the data sets are merged.
In that issue, someone left a message on a simple way, and a very short code achieved this goal. I recorded the code in this tweet.
Because the five datasets are stored in csv format, the first step is to get the file names of all the csv files in the storage path. The command used is
Files
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.