上一页 1 ··· 256 257 258 259 260 261 262 263 264 ··· 367 下一页
摘要: 1、自定义函数 test1 <- function(x = 5,y) ## 自定义函数test { a = x / y print(a) } test1(10,100) ## 使用位置参数,按顺序x = 10, y = 100 test1(y = 10, x = 100) ## 关键字参数 直接定义 阅读全文
posted @ 2021-06-29 22:09 小鲨鱼2018 阅读(1505) 评论(0) 推荐(0) 编辑
摘要: 1、 rm(list = ls()) dir() for (i in list.files(pattern=".r$")) { source(i) } 2、 rm(list = ls()) dir() for (i in dir()) { if(substr(i,nchar(i)-1,nchar(i 阅读全文
posted @ 2021-06-29 00:16 小鲨鱼2018 阅读(137) 评论(0) 推荐(0) 编辑
摘要: R语言中如何在函数内部定义全局变量。 1、在函数内部定义的变量无法在函数外调用 test1 <- function(x, y) { a <- x + y print(a) } test1(10,20) print(a) 2、在函数内定义全局变量 test2 <- function(x, y) { a 阅读全文
posted @ 2021-06-29 00:00 小鲨鱼2018 阅读(1367) 评论(0) 推荐(0) 编辑
摘要: 1、问题 [root@centos79 software]# dnf install R bash: dnf: command not found... 2、安装dnf [root@centos79 software]# yum install epel-release Loaded plugins 阅读全文
posted @ 2021-06-27 23:03 小鲨鱼2018 阅读(9000) 评论(0) 推荐(2) 编辑
摘要: 1、默认情况下root不能登录ssh 2、修改ssh服务配置文件 root@ubuntu01:~/Desktop# whoami root root@ubuntu01:~/Desktop# vim /etc/ssh/sshd_config ………… # Authentication: #LoginG 阅读全文
posted @ 2021-06-27 12:34 小鲨鱼2018 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1、查看当前主机名 root@liujiaxin01-virtual-machine:~/Desktop# hostname liujiaxin01-virtual-machine ##太长 2、修改主机名 root@liujiaxin01-virtual-machine:~/Desktop# wh 阅读全文
posted @ 2021-06-27 12:26 小鲨鱼2018 阅读(695) 评论(0) 推荐(0) 编辑
摘要: Ubuntu 20.04.2默认不能进行root登录 1、查看系统版本 liujiaxin01@liujiaxin01-virtual-machine:~/Desktop$ whoami liujiaxin01 liujiaxin01@liujiaxin01-virtual-machine:~/De 阅读全文
posted @ 2021-06-27 12:20 小鲨鱼2018 阅读(613) 评论(0) 推荐(0) 编辑
摘要: 1、问题 (1)、传输工具 2、安装ssh服务 liujiaxin01@liujiaxin01-virtual-machine:~$ whoami liujiaxin01 liujiaxin01@liujiaxin01-virtual-machine:~$ sudo apt-get install 阅读全文
posted @ 2021-06-27 11:44 小鲨鱼2018 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1、系统信息 liujiaxin01@liujiaxin01-virtual-machine:~/Desktop$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.0 阅读全文
posted @ 2021-06-27 11:33 小鲨鱼2018 阅读(1889) 评论(0) 推荐(0) 编辑
摘要: 1、问题 [root@localhost ~]# systemctl restart network Failed to restart network.service: Unit network.service not found. 2、查看iP [root@localhost ~]# ifcon 阅读全文
posted @ 2021-06-26 13:59 小鲨鱼2018 阅读(2121) 评论(0) 推荐(0) 编辑
上一页 1 ··· 256 257 258 259 260 261 262 263 264 ··· 367 下一页