Skip to content

Commit

Permalink
Update dataframe.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gdemare authored Jan 17, 2025
1 parent b939a71 commit 63b70e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/r/bases/dataframe.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ Fonction | Définition
Package `tidyr`

* `pivot_longer(cols = col_a_trans, names_to = "nv_nom", values_to = "value")` transformer plusieurs colonnes en une seule variable (pas besoin de préciser les colonnes que l'on souhaite garder).
* `values_fill = 0` valeur utilisée pour les NA.
* `pivot_wider(names_from = "name", values_from = "value")` transformer les modalités en colonnes.

* `id_cols = cols` préciser les colonnes à conserver en id de lignes.
Expand Down

0 comments on commit 63b70e3

Please sign in to comment.