Hi,
I have observations on students and would like to combine duplicate students together. For example,
I would like it to look like this:
I tried using:
and it didn't work.
Any help is appreciated!
Thanks
I have observations on students and would like to combine duplicate students together. For example,
class | name | attendance | quiz_mean | final | exam1 |
bio101 | AMAL | .037 | . | . | . |
bio101 | AMAL | . | 0 | 0 | 0 |
bio110 | GABE | . | .73 | .75 | .53 |
bio110 | GABE | .96 | . | . | . |
class | name | attendance | quiz_mean | final | exam1 |
bio101 | AMAL | .037 | 0 | 0 | 0 |
bio110 | GABE | .96 | .73 | .75 | .53 |
Code:
replace quiz_mean = 0 if quiz_mean == . & name = "AMAL"
Any help is appreciated!
Thanks
Comment