problems with cycle for

1

I have a fairly simple question, but I have not found the solution yet. I have this df:

    High Low  Middle

current 0.51 0.43 0.22
former 0.92 0.28 0.21
never 0.78 0.22 0.9

and I wanted the values < 0.75 remained NA.

I did this cycle: for (element in ncol (df)) {   df [which (df [element] < 0.75)] == "NA" }

Does not replace values

asked by anonymous 09.05.2018 / 16:15

0 answers