Winsorize data by column

Hi! I'm new to R and would like to winsorize my data since trimming is no option due to my limited number of observations.

My data looks like follow, in total I have 131 observations:

                         company   id    rev   size age 
1                           Adeg 29.9   0.66    160  45     
2                         Agrana 32.0   2.80   9191  29     
3                        Allianz 36.5  87.75 142460 128     
4                        Andritz 34.0   6.89  29096 118     
5                          Apple 41.0 259.65 132000  41

i would like to winsorize the variable " rev ", so actually winsorize my data by column (not the whole dataset). If i use the function winsorize(data1), an error appears since variable company is not numeric.

  1. How can i winsorize the data by column?

To avoid this problem I created a second dataset, data2 without variable company. By applying function winsorize(data2), another error appears again:

winsorize(data2)
Error in eigen(R, symmetric = TRUE) : infinite or missing values in 'x'
  1. How can I winsorize my data correctly?

I would be very happy if someone could help me out!