Row wise median (or sum or mean) with missings

Please quote your code (you can still edit your posts).