01 2022 档案

摘要:欢迎自取 阅读全文
posted @ 2022-01-30 14:07 天使不设防 阅读(502) 评论(0) 推荐(1) 编辑
摘要:主要是针对数据框后面跟变量,获取数据的情况。 df<-data.frame(A=c(1,2,3),B=c(6,7,8)) tmp<-"B" # dftmp // 输出 NULL eval(parse(text = paste0("df$",tmp))) 阅读全文
posted @ 2022-01-28 13:37 天使不设防 阅读(186) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2022-01-24 16:25 天使不设防 阅读(159) 评论(0) 推荐(0) 编辑
摘要:就像下面的这个例子,直接把要返回的类型包裹在一个枚举中,接收函数再根据结果分别处理。 1 use std::fs::File; 2 use std::io::BufReader; 3 use flate2::read::GzDecoder; 4 #[allow(non_camel_case_type 阅读全文
posted @ 2022-01-18 11:18 天使不设防 阅读(983) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示