I want to create new variables as follows:
MainModFinal$xAdAware_CA_1<-(MainModFinal$AdAware_CA_1/MainModFinal$ParticipantCount)*100
MainModFinal$xAdAware_CB_1<-(MainModFinal$AdAware_CB_1/MainModFinal$ParticipantCount)*100
So, I would like to divide the existing variable by the same Participant count and thus create a percentage variable out of it.
Can some one tell me how could it be accomplished as I need to repeat it for several more variables?