Displaying 1 result from an estimated 1 matches for "cohensum".
Did you mean:
cohens
2012 Oct 13
3
Replace column values in R conditional on values from different column
...lumn.
I searched the forum and google in general, and was able to put some code
together, but it's not working the way it's supposed to... I appreciate any
help you can offer! A detailed description of the issue, and the code I came
up with, is below.
I am trying to separate one variable (CohenSum) into separate values for
males and females, in two separate columns, so I can do computations on them
(i.e. mean, sd). I tried the code below, but the values I got didn't make
sense - the length of the M and F columns should have been about half of the
initial column length and NA for the rest...