str after as.factor?

if i made this
Dipendenti <- within(Dipendenti, {alfa <-as.factor(alfa) })

how can i see structur of alfa?
if i made only

str(alfa)
r say object not found

thanks

After that last closing bracket you wrote you are no longer 'within' Dipendenti so

str(Dipendenti$alfa)
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.