Find value within a range in R

后端 未结 1 600
陌清茗
陌清茗 2021-01-27 09:12

My data look like below. I want to select value greater/equal to 35 and less than/equal to 350. I also want to replace those values with withinrange



        
相关标签:
1条回答
  • 2021-01-27 10:03

    To select the values: value[value >= 35 & value <=350]

    To replace them with withinrange: value[value >= 35 & value <=350] <- withinrange

    0 讨论(0)
提交回复
热议问题