> 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}} ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.