Thank you! I tried what you did, but I am getting an error message. I used the name of my column, Pheophytin, rather than "param_1".
Code:
library(tidyverse)
library(readr)
Master2 <- Master
mutate(processed_Pheophytin = ifelse(str_detect(
string=Pheophytin,
pattern="<"
),
parse_number(gsub(
pattern = "<",
replacement ="", x = Pheophytin
))/2, parse_number(Pheophytin)
))
Error Message:
Error in stri_detect_regex(string, pattern, negate = negate, opts_regex = opts(pattern)) : object 'Pheophytin' not found