Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 206278

How do I insert special character as the result of case_when in R Shiny?

$
0
0

I have this code I put in R Shiny :

case_when(tesdata$note <= 10 ~ "&#8804",
tesdata$note > 10 ~ "&#8805")

It should return ≤ if the value is less than or equal to 10 and ≥ if the value is more than 10.
However it won't give me the special character and instead return the code itself "&#8804".

How do I make it return the special character?


Viewing all articles
Browse latest Browse all 206278

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>