Question : numeric to factor column in r
Answered by : geut-g
{"tags":[{"tag":"textarea","content":"df$factor_variable <- as.factor(df$numeric_variable)","code_language":"r"}]}
Source : https://www.statology.org/r-convert-numeric-to-factor/ | Last Update : Tue, 28 Mar 23