Изменение базовой группы в факторе в R
df$x <- relevel(df$x, "x_a")
#x_a is the intended group to be set as the base group
Successful Salmon
df$x <- relevel(df$x, "x_a")
#x_a is the intended group to be set as the base group