I have a df and I want to do a simple calculation using test*factor. How could I take care of the signs in front of the value?
df<-structure(list(test = structure(c(3L, 2L, 5L, 4L, 1L), .Label = c("<=1.5",
"<5", ">=1", ">7.8", "6"), class = "factor"), factor = c(2, 4,
6, 9, 8)), row.names = c(NA, -5L), class = "data.frame")
