Skip to content

Change header text by icontext #143

@rdornas

Description

@rdornas

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions