[R] Standardization

Giovanni Petris GPetris at uark.edu
Wed Mar 28 00:01:13 CEST 2007


So, scale() is the answer. Have you looked at the help? 

Giovanni  

> Date: Tue, 27 Mar 2007 17:37:08 +0200
> From: Sergio Della Franca <sergio.della.franca at gmail.com>
> Sender: r-help-bounces at stat.math.ethz.ch
> Cc: r-help at stat.math.ethz.ch
> Precedence: list
> 
> Sorry,
> 
> I try to explain better my problem.
> 
> Standardization (range) ==> (var-mean(var))/(max(var)-min(var))
> 
> Thank you in advance
> 
> 
> 
> 
> 2007/3/27, Bos, Roger <roger.bos at us.rothschild.com>:
> >
> > I am not sure I understand your question, but you may want to have a
> > look at ?scale.  It might get you started.
> >
> >
> >
> > -----Original Message-----
> > From: r-help-bounces at stat.math.ethz.ch
> > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Sergio Della
> > Franca
> > Sent: Tuesday, March 27, 2007 10:52 AM
> > To: r-help at stat.math.ethz.ch
> > Subject: [R] Standardization
> >
> > Dear R-Helpers,
> >
> > I want to perform a stadardiazation of a variable with mehtod range.
> >
> > How can i achve this results?
> >
> >
> > Thank you in advance.
> >
> >
> > Sergio Della Franca
> >
> >        [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch 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.
> >
> > ********************************************************************** *
> > This message is for the named person's use only. It may
> > contain confidential, proprietary or legally privileged
> > information. No right to confidential or privileged treatment
> > of this message is waived or lost by any error in
> > transmission. If you have received this message in error,
> > please immediately notify the sender by e-mail,
> > delete the message and all copies from your system and destroy
> > any hard copies. You must not, directly or indirectly, use,
> > disclose, distribute, print or copy any part of this message
> > if you are not the intended recipient.
> > **********************************************************************
> >
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
> 
> 

-- 

Giovanni Petris  <GPetris at uark.edu>
Associate Professor
Department of Mathematical Sciences
University of Arkansas - Fayetteville, AR 72701
Ph: (479) 575-6324, 575-8630 (fax)
http://definetti.uark.edu/~gpetris/



More information about the R-help mailing list