I am trying to create a new variable through mutate. I have to select two existing variables from dataset , one variable named total_hit should have values above 40 and second variable total_work should have values above 80. These observations should be put in a new variable total_hit_work . For this i use the below formula but it shows error;
I have removed the quoted from number but it still shows below error. Thanks
Error: Problem with mutate() column total_hit_work. i total_hit_work = parsenumber(total_hit > 40 & total_work > 80). x could not find function "parsenumber" Run rlang::last_error() to see where the error occurred.
Thanks for the explanation. I was also confused that why it's showing TRUE and False when I run the code without the parse_number in mutate. Now, with as.numeric it is showing it as a new variable with values of 2 other variables in the form of number. I hope they will accept this solution as it works.