01 2022 档案
摘要:主要是针对数据框后面跟tmp // 输出 NULL eval(parse(text = paste0("df$",tmp)))
阅读全文
摘要:library(ggplot2) library(cowplot) df<-data.frame(K=LETTERS[1:4],V=c(10,20,100,60)) p1<-ggplot(df,aes(x=K,y=V,fill=K))+geom_bar(stat = 'identity')+ lab
阅读全文
摘要:就像下面的这个例子,直接把要返回的类型包裹在一个枚举中,接收函数再根据结果分别处理。 1 use std::fs::File; 2 use std::io::BufReader; 3 use flate2::read::GzDecoder; 4 #[allow(non_camel_case_type
阅读全文