[R] use of class variable in r as in Proc means of sas

premmad mtechprem at gmail.com
Wed Sep 23 12:11:21 CEST 2009


I tried thanks for your help and got the same result for percentile 5 & 95 as
in SAS.But if i need to calculate quantiles (1,5,10,99,etc.) it will not be
possible with fivenum as explained in the help page .If i need those
quantiles what is the change i need to make in the function 
qfu<-function(x,digits=3,sci=F,...)
{c(q=quantile(x,probs=c(5,90)/100))
} 

or do i need to include some other function .

-- 
View this message in context: http://www.nabble.com/use-of-class-variable-in-r-as-in-Proc-means-of-sas-tp25530654p25531069.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list