Zmiana grupy podstawowej w czynniku w R

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