Re: [R] dplyr's arrange function - 3 solutions received - 1 New Question

2016-06-16 Thread Muhuri, Pradip (AHRQ/CFACT)
, Rockville, MD 20857 Tel: 301-427-1564 -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Thursday, June 16, 2016 12:54 PM To: Muhuri, Pradip (AHRQ/CFACT) Cc: r-help@r-project.org Subject: Re: [R] dplyr's arrange function - 3 solutions received - 1 Ne

Re: [R] dplyr's arrange function - 3 solutions received - 1 New Question

2016-06-16 Thread David Winsemius
quot;93.5 (0.90)" "52.7 (3.90)" > ... > $ ppv : chr "90.4 (0.94)" "92.8 (0.85)" "93.7 (0.87)" "94.3 (0.63)" > ... > $ npv : chr "61.5 (3.00)" "92.8 (2.27)" "96.9 (0.63)" "

Re: [R] dplyr's arrange function - 3 solutions received - 1 New Question

2016-06-16 Thread Muhuri, Pradip (AHRQ/CFACT)
t;92.8 (2.27)" "96.9 (0.63)" "87.5 (3.27)" ... $ kappa : chr "0.536 (0.029)" "0.676 (0.032)" "0.905 (0.011)" "0.626 (0.035)" ... Pradip K. Muhuri, AHRQ/CFACT 5600 Fishers Lane # 7N142A, Rockville, MD 20857 Tel: 301-427-156

Re: [R] dplyr's arrange function

2016-06-15 Thread David Winsemius
> On Jun 15, 2016, at 2:08 PM, Muhuri, Pradip (AHRQ/CFACT) > wrote: > > Hello, > > I am using the dplyr's arrange() function to sort one of the many data > frames on a character variable (named "prevalence"). > > Issue: I am not getting the desired output (line 7 is the problem, which >

Re: [R] dplyr's arrange function

2016-06-15 Thread Jim Lemon
Hi Pradip, I'll assume that you are reading the data from a file: pm.df<-read.csv("pmdat.txt",stringsAsFactors=FALSE) # create a vector of numeric values of prevalence numprev<-as.numeric(sapply(strsplit(trimws(pm.df$prevalence)," "),"[",1)) # order the data frame by that vector pm.df[order(numpre

Re: [R] dplyr's arrange function

2016-06-15 Thread Daniel Nordlund
On 6/15/2016 2:08 PM, Muhuri, Pradip (AHRQ/CFACT) wrote: Hello, I am using the dplyr's arrange() function to sort one of the many data frames on a character variable (named "prevalence"). Issue: I am not getting the desired output (line 7 is the problem, which should be the very last line

[R] dplyr's arrange function

2016-06-15 Thread Muhuri, Pradip (AHRQ/CFACT)
Hello, I am using the dplyr's arrange() function to sort one of the many data frames on a character variable (named "prevalence"). Issue: I am not getting the desired output (line 7 is the problem, which should be the very last line in the sorted data frame) because the sorted field is cha