I am trying to calculate the standard deviation for each participant across certain columns (or variables) and have this as a new variable in my dataframe. In Excel, it's relatively simple, you would just use =stdev and then select the columns you want and then populate it for the rest of the participants. It's also very simple in SPSS, you would just compute a new variable and then make it equal to var(item1,item2,item3). But in R, I can't get it to work. So essentially, this is what I want my r data-frame to end up looking like:
Any help is greatly appreciated!