Skip to content
Prev 325614 / 398503 Next

quantile

Hi,
May be this helps:

set.seed(28)
?x<- sample(1:40,20,replace=TRUE)
?qx<-quantile(x,probs=0.10)
?qx
#10% 
#3.8 
?qx+1
#10% 
#4.8 
attr(qx,"names")<-NULL
qx
#[1] 3.8
?qx+1
#[1] 4.8
A.K.

?



----- Original Message -----
From: Francesco Miranda <kicco1991 at hotmail.it>
To: "r-help at r-project.org" <r-help at r-project.org>
Cc: 
Sent: Wednesday, June 19, 2013 3:44 AM
Subject: [R] quantile

Hello,How do I extract only the value from the quantile function?example:quantile (x, probs = 0.10)? ? ? 10%-1.83442I want to add salt only the number -1.83442
SincerelyFrancesco Miranda ??? ???  ??? ?  ??? ??? ? 
??? [[alternative HTML version deleted]]

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