Relative Content

Tag Archive for rdplyr

pmax (pmin) na.rm not working – Problem with NA/NaN Argument

I am dealing with a problem related to the pmax (and the pmin) function. I know it is used to get rowwise max (min) values. And what I wanted to get are the max and min values so to set some columns to a new range that is balanced for my analysis. The a:g is the old range and e:g is the new range that I want to use and balance out. My dataframe is not exactly the same (quite big actually), but for the sake of getting to the point, lets say the df is like this: