Skip to content
Prev 177242 / 398503 Next

performing function on data frame

As Michael notes, scale is what you want. Also, your request has an
incorrect definition of z scores:

d$y - mean(d$y)/sd(d$y) #incorrect

(d$y - mean(d$y) ) / sd(d$y) #correct

On Thu, Apr 16, 2009 at 7:40 AM, Michael Conklin
<michael.conklin at markettools.com> wrote: