R

R与Cpp混合编程一

Last update: 2021-06-09 内容目录 Rcpp基本简介 强大的引用传递 头文件的意义 编程Trick Rcpp基本简介 http://arma.sourceforge.net/ Armadillo supports matrices with the following element types: float, double, std::complex, std::complex, short, int, long, and unsigned versions of short, int, long. Support for other types

Linux与server操作手册

Last update: 2021-06-09 内容目录 NSCC linux Linux相关操作 Linux与Anoconda操作 linux服务器提交计算任务 Module环境变量管理工具 vi/vim编辑

R与Cpp混合编程二

Last update: 2021-06-09 内容目录 armadillo官网 List返回值的类型的重复申明 注意事项 传递非结构化数据 类型转换 逐行逐列做运算 List套List 非规则向量

R ggplot2 绘图二

Last update: 2021-02-09 See https://www.cedricscherer.com/2019/08/05/a-ggplot2-tutorial-for-beautiful-plotting-in-r/#panels. Table of Content Preparation The Dataset Default ggplot Pipeline operator Preparation The Dataset chic <- readr::read_csv("https://raw.githubusercontent.com/Z3tt/R-Tutorials/master/ggplot2/chicago-nmmaps.csv") tibble::glimpse(chic) load ggplot2 package Default ggplot library(tidyverse) ggplot(chic, aes(x = date, y = temp)) + geom_point(color = "firebrick") + labs(x = "Year", y = expression(paste("Temperature (", degree ~ F, ")"^"(Hey, why should we use metric units?!)"))) library(tidyverse) chic_high <- dplyr::filter(chic, temp > 25, o3 > 20) ggplot(chic_high, aes(x =