pivot_wider( names_from = var, values_from = c(value) )
pivot_longer( cols = starts_with(“wk”), names_to = “week”, values_to = “rank” )
Réutilisation
Citation
BibTeX
@online{coulombe2024,
author = {Coulombe, Simon},
title = {pivot\_wider pivot\_longer},
date = {2024-12-12},
url = {https://aidememoire.netlify.app/rstats/pivot_wider.html},
langid = {fr}
}
Veuillez citer ce travail comme suit :
Coulombe, Simon. 2024. “pivot_wider pivot_longer.” December
12, 2024. https://aidememoire.netlify.app/rstats/pivot_wider.html.