I have this csv table for which I need to rescale data between 0 and 1 for each column. That is, the smallest value of any given column will be 0, the highest will be 1, and all other values will be linearly scaled accordingly. Here is my script:
tableau <- read.csv("/tableau.csv")
tableau.m <- melt(tableau)
tableau.m <- ddply(tableau.m, .(variable), transform,rescale = rescale(value))
(And here is the data: https://dl.dropboxusercontent.com/u/73950/tableau.csv )
The problem is that I need to flip the second column ("B"). That is, for this column, and not for the rest, the lowest value should be 1, and the highest should be 0.
Is plyr flexible, or should I try other ways to achieve this?

( B 2.13, , 1,88 - , 2.07, 2.09 2.05 . .)