每日一R--命令行参数

R本身自带的getopt有点儿麻烦,不好用

下面介绍一个需要安装的命令行参数包

GetoptLong

library(GetoptLong)

cutoff = 0.05
GetoptLong(
"number=i", "Number of items, integer, mandatory option",
"cutoff=f", "cutoff to filter results, optional, default (0.05)",
"verbose", "print messages"
)

posted on 2017-11-14 15:36  chenwt  阅读(454)  评论(0编辑  收藏  举报