Hello,
Here is something I couldn't figure out - when using as.numeric() to change the type of variables, which all are character, only a few of them did change but not all of them. below were the codes and results
final1<- within(final1, Bother <- as.numeric(Bother),
concentration <- as.numeric(concentration),
Depressed <- as.numeric(Depressed),
Effort <- as.numeric(Effort),
Hopeful<- as.numeric(Hopeful),
Fearful<- as.numeric(Fearful),
Restless<-as.numeric(Restless),
Happy <- as.numeric(Happy),
Lonely <- as.numeric(Lonely),
Not_Get_Going<-as.numeric(Not_Get_Going)
)
only Bother, Effort, Fearful, and Happy did change, but the rest of them did not.
Thanks in advance for help!
Jason