上一页 1 ··· 237 238 239 240 241 242 243 244 245 ··· 367 下一页
摘要: 1、 a <- 1:5 b <- 3:7 c <- 5:9 d <- 4:8 e <- data.frame(a, b, c, d) e e[e == 5] = 500 e 2、在指定列替换 a <- 1:5 b <- 3:7 c <- 5:9 d <- 4:8 e <- data.frame(a, 阅读全文
posted @ 2021-10-28 20:46 小鲨鱼2018 阅读(1073) 评论(0) 推荐(0) 编辑
摘要: 1、 a <- 1:5 b <- 3:7 c <- 5:9 d <- data.frame(a, b, c) unique(c(d$a, d$b, d$c)) 2、 a <- 1:5 b <- 3:7 c <- 5:9 d <- data.frame(a, b, c) e <- vector() f 阅读全文
posted @ 2021-10-28 19:58 小鲨鱼2018 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1、直接测试 a <- c(2, 1, 3, 5) b <- c(2, 3, 1, 1) a * b ## 仅计算每一项的成绩 a %*% b ## 将乘积汇总 阅读全文
posted @ 2021-10-27 17:40 小鲨鱼2018 阅读(3209) 评论(0) 推荐(0) 编辑
摘要: 1、win + r, 然后输入cmd 2、例如查看80端口占用情况,netstat -an |find ":80" 3、查看端口是否开启 netstat -ano -p tcp | find "5952" >nul 2>nul && echo 端口已开启 || echo 端口未开启 阅读全文
posted @ 2021-10-27 13:57 小鲨鱼2018 阅读(4244) 评论(0) 推荐(0) 编辑
摘要: 1、直接测试 a <- 1:5 b <- 3:8 a b setdiff(a, b) ##左侧唯一 setdiff(b, a) ##右侧唯一 intersect(a, b) ##交集 union(a, b) ##并集 阅读全文
posted @ 2021-10-27 11:59 小鲨鱼2018 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 来源:https://blog.csdn.net/u010652755/article/details/72982227/ 1、创建测试数据: name <- c('A','B','A','A','C','D') school <- c('s1','s2','s1','s1','s1','s3') 阅读全文
posted @ 2021-10-27 08:30 小鲨鱼2018 阅读(601) 评论(0) 推荐(0) 编辑
摘要: 1、单列测试 root@PC1:/home/test2# seq 5 > a.txt root@PC1:/home/test2# cat a.txt 1 2 3 4 5 root@PC1:/home/test2# paste -s a.txt 1 2 3 4 5 root@PC1:/home/tes 阅读全文
posted @ 2021-10-27 07:36 小鲨鱼2018 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1、测试1 library(dplyr) fun1 <- function(x1, x2){return(x1 - x2)} fun2 <- function(x1, x2, x3){return(x1 * x2 - x3)} a = 8 b = 7 c = 3 y1 <- a %>% fun1(b 阅读全文
posted @ 2021-10-26 17:00 小鲨鱼2018 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 root@PC1:/home/test/test/test# cat a.txt 1 d f 2 3 f 3 s 8 4 f a d g 8 root@PC1:/home/test/test/test# cat -A a.txt 1 d f$ $ 2 3 f$ 3 s 8$ $ $ 4 阅读全文
posted @ 2021-10-25 21:33 小鲨鱼2018 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 1、问题 2、解决方法,增加如下内容 root@PC1:~/home/test# vim /etc/profileexport DISPLAY=:0.0 3、立即生效 root@PC1:/home/test# source /etc/profile 参考:https://blog.csdn.net/ 阅读全文
posted @ 2021-10-24 17:58 小鲨鱼2018 阅读(10065) 评论(0) 推荐(0) 编辑
上一页 1 ··· 237 238 239 240 241 242 243 244 245 ··· 367 下一页