随笔分类 - R
摘要:scripts备忘;省去每次都要翻笔记的时间
阅读全文
摘要:安装WSL2 参考这里 换源 参考这里 build-essential(gcc,g++,make) 参考这里 安装最新版本的R (4.x.x) 参考这里 安装Rstudio-server 参考这里
阅读全文
摘要:# Create test matrix(造数据) set.seed(6) test = matrix(rnorm(200), 20, 10) test[1:10, seq(1, 10, 2)] = test[1:10, seq(1, 10, 2)] + 3 test[11:20, seq(2, 1
阅读全文
摘要:使用的R包:FactoMineR factoextra FactoMineR提供PCA算法以及(原始)结果;factoextra则extract and visualize the output Principal Component Analysis (PCA), which is used to
阅读全文
摘要:# Create test matrix test = matrix(rnorm(200), 20, 10) test[1:10, seq(1, 10, 2)] = test[1:10, seq(1, 10, 2)] + 3 test[11:20, seq(2, 10, 2)] = test[11:
阅读全文