I would like to conditionally replace the values of each columns in R. My data looks like below image.
In this, I want to check if the values are >UCL then want to replace with UCL value and If the values are
The Output should look like below image:
Like this I have many rows and columns data and I'm looking for solution in R.