Skip to content
Prev 74893 / 398502 Next

Convert numeric to factor

Why are you adding as.integer before the factor statement?  You are forcing 
the variable to be an integer even tough you are passing factor within the 
statement.  Try

Lease$ID <-factor(Lease$EarlyTermination)

Cheers

Francisco