R - Transformer en tant que facteur
df$myvar <- as.numeric(as.character(df$myvar))
df$myvar <- as.factor(df$myvar)
Andrea Perlato
df$myvar <- as.numeric(as.character(df$myvar))
df$myvar <- as.factor(df$myvar)