This is my first time here, and after browsing on this site I could not find a solution to my problem. I would really appreciate your help!
I have a dataset called esports, which have items such as Age, gender, femininity, machiavellianism. I have extracted variables from the dataset called Femininity and mac, by using the following code:
femininity<-rowMeans(data.frame(esports[11:15],6-esports[16:17]))
mac<-rowMeans(data.frame(esports[28:30],6-esports[31,33]))
Now what I wish to do is: Take the rows Femininity + mac and combine it with my first 8 items in esports. The following code gave me the first 8 items:
esports2<-esports[1:9]
After looking around I tried the following:
esports2<-rbind((esports[,c(1:9,femininity,soc,mac)]
sadly, it did not work.
Does anyone have a solution?
Kind regards, Fares.