Cambiar el grupo base en factor en R

df$x <- relevel(df$x, "x_a")
#x_a is the intended group to be set as the base group
Successful Salmon