From S@E|||@on @end|ng |rom LGCGroup@com  Thu Jan  9 18:03:16 2020
From: S@E|||@on @end|ng |rom LGCGroup@com (Stephen Ellison)
Date: Thu, 9 Jan 2020 17:03:16 +0000
Subject: [Rd] mean
In-Reply-To: <FEF25E56AFC7064784FA97C576467E0A020580ACD1@pdexchbalwst01.ad.insee.intra>
References: <FEF25E56AFC7064784FA97C576467E0A020580ACD1@pdexchbalwst01.ad.insee.intra>
Message-ID: <15997474164944d2874c0d00359d18be@GBDCVPEXC04.corp.lgc-group.com>

Note that in 

> > quantile(c("1","2","3"),p=.5)
> Error in (1 - h) * qs[i] : 
>  argument non num?rique pour un op?rateur binaire
the default quantile type (7) does not work for non-numerics.

Quantile types 1 and 3 work as expected:

> quantile(c("1","2","3"),p=.5, type=1)
50% 
"2" 
> quantile(c("1","2","3"),p=.5, type=3)
50% 
"2"


Steve E



*******************************************************************
This email and any attachments are confidential. Any use, copying or
disclosure other than by the intended recipient is unauthorised. If 
you have received this message in error, please notify the sender 
immediately via +44(0)20 8943 7000 or notify postmaster at lgcgroup.com 
and delete this message and any copies from your computer and network. 
LGC Limited. Registered in England 2991879. 
Registered office: Queens Road, Teddington, Middlesex, TW11 0LY, UK


[Rd] mean
Stephen Ellison