The following code won't detect the written element and always gives 0 (false) response in the plant column.
ourData <- myData %>%
mutate(plant = ifelse(description %in% c("⚰️"), 1,0))
View(ourData)
The following code gives data below
ourData_ description
However, it seems to work for the "num_row" column. So I was wondering why this is the case and how I can solve it?
ourData <- myData %>%
mutate(plant = ifelse(num_row %in% c("1"), 1,0))
View(ourData)
Below is one for num_row (which works)
ourData_num_row