Sorry everyone if this is already in another post, but I am totally new here and super green with R.
So what I am trying to achieve is that all values from a table with percentages above or equal to 15% should become a 1 and all values below 15% should become 0
I was thinking of gsub but can the "to be replaced" be a condition?