[R] Scaling values 0-255 -> -1 , 1 - how can this be done?
S Ellison
S.Ellison at LGCGroup.com
Wed Nov 21 19:29:34 CET 2012
> Subject: Re: [R] Scaling values 0-255 -> -1 , 1 - how can
> this be done?
#Also by taking advantage of numerical interpretation of booleans:
x<- sample(255) #toy data
2*( x > 127.5 ) - 1
#S Ellison
*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}
More information about the R-help
mailing list