Answers for "r - if value in a df is between two number then add 1"

R
0

r - if value in a df is between two number then add 1

library(TeachingDemos)

x <- c(3.2,6,7.8,1,3,2.5)
x <- ifelse(2 %<% x %<% 5, -1, x)
Posted by: Guest on January-27-2021

Code answers related to "r - if value in a df is between two number then add 1"

Browse Popular Code Answers by Language