R - Réorganiser les colonnes dans le cadre de données
# Reorder by column name
df <- df[c("A", "B", "C")]
# Reorder by column index
df <- df[c(1, 3, 2)]
Andrea Perlato
# Reorder by column name
df <- df[c("A", "B", "C")]
# Reorder by column index
df <- df[c(1, 3, 2)]