R语言中switch语句

R语言中switch语句。

1、测试1

switch (1,
  "aaa","bbb","ccc","ddd","eee"
)

 

 

switch (3,
        "aaa","bbb","ccc","ddd","eee"
)

 

 

switch (3,
        min(1:3), max(1:3), sum(1:3)
)

 

posted @ 2021-04-25 09:01  小鲨鱼2018  阅读(424)  评论(0编辑  收藏  举报