I have a simple data frame as follows:
Date <- seq(as.Date("2013/1/1"), by = "day", length.out = 12)
test < -data.frame(Date)
test$Value <- c("1,4","2,3","3,6","< 1,4","2,3","3,6","1,4","2,3","3,6","< 1,4","2,3","3,6")
I need to go through each of the rows and remove the "<" sign if detected. Then I need to multiply the remaining number by 5.
I tried gsub() but this only lets me change a character with another character or space but doesn´t let me perform a calculation. I guess I also need to change the decimal separator from "," to "." to be able to use those numbers as numerics.
How can I solve this in R?