Hmisc
Hmisc copied to clipboard
Error in wtd.rank
Hi, I receive an error when I use wtd.rank without weights:
x<-rnorm(20)
wtd.rank(x)
Erreur dans return(rank(x), na.last = if (na.rm) NA else TRUE) :
les renvois multi-arguments sont inderdits
I think that In the return argument, the first closing bracket (after x) is wrongly located and should be after TRUE:
return(rank(x, na.last = if (na.rm) NA else TRUE) )
Many thanks in advance.
Sorry about that. Thanks for the correction. Am about to post update to github and this will be in the next release for CRAN.
Frank
On 09/17/2014 05:39 AM, DPlat wrote:
Hi, I receive an error when I use wtd.rank without weights:
| x<-rnorm(20) wtd.rank(x) Erreur dans return(rank(x), na.last = if (na.rm) NA else TRUE) : les renvois multi-arguments sont inderdits |
I think that In the return argument, the first closing bracket (after x) is wrongly located and should be after TRUE:
| return(rank(x, na.last = if (na.rm) NA else TRUE) ) |
Many thanks in advance.
— Reply to this email directly or view it on GitHub https://github.com/harrelfe/Hmisc/issues/15.
Frank E Harrell Jr Professor and Chairman School of Medicine
Department of *Biostatistics* *Vanderbilt University*
Fine ! Thanks.
Didier Plat Laboratoire d'Economie des Transports (UMR CNRS 5593) Ecole Nationale des Travaux Publics de l'Etat rue Maurice Audin F-69518 Vaulx-en-Velin CEDEX (33)(0)472047047 www.let.fr ; www.entpe.fr
De : Frank Harrell [mailto:[email protected]] Envoyé : mercredi 17 septembre 2014 15:50 À : harrelfe/Hmisc Cc : PLAT didier Objet : Re: [Hmisc] Error in wtd.rank (#15)
Sorry about that. Thanks for the correction. Am about to post update to github and this will be in the next release for CRAN.
Frank
On 09/17/2014 05:39 AM, DPlat wrote:
Hi, I receive an error when I use wtd.rank without weights:
| x<-rnorm(20) wtd.rank(x) Erreur dans return(rank(x), na.last = if (na.rm) NA else TRUE) : les renvois multi-arguments sont inderdits |
I think that In the return argument, the first closing bracket (after x) is wrongly located and should be after TRUE:
| return(rank(x, na.last = if (na.rm) NA else TRUE) ) |
Many thanks in advance.
— Reply to this email directly or view it on GitHub https://github.com/harrelfe/Hmisc/issues/15.
Frank E Harrell Jr Professor and Chairman School of Medicine
Department of Biostatistics Vanderbilt University
— Reply to this email directly or view it on GitHubhttps://github.com/harrelfe/Hmisc/issues/15#issuecomment-55895834.