每日一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"
)