Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

changing base group in factor in r

df$x <- relevel(df$x, "x_a")
#x_a is the intended group to be set as the base group
 
PREVIOUS NEXT
Tagged: #changing #base #group #factor
ADD COMMENT
Topic
Name
4+6 =