R语言中求值域 R语言中求值域 1、测试1 test <- c(34,3,9,24,43,87,2) test range(test) ## 求值域 diff(range(test)) ## 求最大值和最小值之差