[R] MODE , VARIANCE , NTH PERCENTAILE

arun smartpink111 at yahoo.com
Wed Jul 11 23:35:13 CEST 2012


Hi,

Just try: dat4<-read.table(text="
 ABC PQR XYZ MNO
   3  6  7  15
   2  12  24  15
   20  5  1  2
  25  50  15  35 
 ",sep="",header=TRUE)
 apply(dat4,2,quantile)
 
 apply(dat4,2,var) 

#For mode calculation, use package ?modalvalue {rattle}
A.K.

,



----- Original Message -----
From: Rantony <antony.akkara at ge.com>
To: r-help at r-project.org
Cc: 
Sent: Wednesday, July 11, 2012 3:38 AM
Subject: [R] MODE , VARIANCE , NTH PERCENTAILE

Hi,
Here i have an matrix like this,

ABC    PQR    XYZ   MNO
------   -------   ------   --------
3            6        7          15
2          12        24        15
20         5         1           2
25          50      15         35

i need to get the 
                                      "MODE" - for each column-wise
                                      "VARIANCE" - for each column-wise
                                      "25TH-PERCENTAILE" -for each
column-wise

i tried alots, and it was difficult to get. Someone can help me out please ?

- Antony                                        


--
View this message in context: http://r.789695.n4.nabble.com/MODE-VARIANCE-NTH-PERCENTAILE-tp4636112.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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.




More information about the R-help mailing list