ubah numerik DataFrame menjadi biner di r

df[df > 0] = 1
Grumpy Goose