Is there any easy way to normalize columns in dataframe?

I have a dataframe with several double type varaibles.

I tried to code the normalization by myself, by it seems mean() function do not consume non-numeric type data.

I planned to normalize the columns into minimal value 0 and maximum value 1, so the built in function scale() don't work for me. And I also have an Date column that need to be neglected.

Is there any normalize function that I could do this easily? Thank you!


To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.