长数据和宽数据相互转换
简介
长数据(一般3列)和宽数据(常见的矩阵形式)相互转换,调用reshape2函数。
输入数据
若数据为3列,则判断为长数据。若数据尝过3列,判断为宽数据。数值不能为空,NA等。
论文例子
如何引用?
建议直接写网址。4400+篇
google学术,3700+篇
知网学术
正式引用:Tang D, Chen M, Huang X, Zhang G, Zeng L, Zhang G, Wu S, Wang Y.
SRplot: A free online platform for data visualization and graphing. PLoS One. 2023 Nov 9;18(11):e0294236. doi: 10.1371/journal.pone.0294236. PMID: 37943830.
方法章节:Heatmap was plotted by https://www.bioinformatics.com.cn (last accessed on 10 Oct 2024), an online platform for data analysis and visualization.
致谢章节:We thank Mingjie Chen (Shanghai NewCore Biotechnology Co., Ltd.) for providing data analysis and visualization support.