Re: [R] Usefulness of "scale" function

From: Abhijit Dasgupta <adasgupt_at_mail.jci.tju.edu>
Date: Sat, 07 Jun 2008 11:21:57 -0400

Type ?scale in R for the answer :)

Gundala Viswanath wrote:
> Hi all,
>
> I found this snippet in a gene expression
> clustering code.
>
> __BEGIN__
> temp <- readLines("GSE1110_series_matrix.txt");
> cat(temp[-grep("^!|^\"$", temp)], file="GSE1110clean.txt", sep="\n");
> mydata <- read.delim("GSE1110clean.txt", header=T, sep="\t")
>
> mydatascale <- t(scale(t(mydata)))
>
>
> I am wondering, in general:
>
> 1. What is the purpose of 'scale' function?
> 2. When one should use it?
>
>
>



R-help_at_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. Received on Sat 07 Jun 2008 - 15:52:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 07 Jun 2008 - 17:30:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive