Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change header text by icontext #143

Open
rdornas opened this issue Nov 2, 2020 · 0 comments
Open

Change header text by icontext #143

rdornas opened this issue Nov 2, 2020 · 0 comments

Comments

@rdornas
Copy link

rdornas commented Nov 2, 2020

Hello! First of all, thanks for this great package!

Imagine I have the following df:

df <- tibble::tribble(
           ~Ciclo, ~Adequada, ~Atenção, ~Inadequada,
   "1ª avaliação",     0.789,      0.152,       0.058,
   "2ª avaliação",     0.923,      0.066,       0.011,
   "3ª avaliação",     0.957,      0.043,           0
   )

I've been trying to replace only some of the headers by icontexts but without success. In this case, I want Adequada to be a green "circle_check", Atenção to become a yellow "circle_alert" and Inadequada to be a red "circle_remove". In this way, the column header Ciclo would remain the same.

Is it possible to achieve this with formattable?

Thank you very much in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant