search for: groupcolumn

Displaying 16 results from an estimated 16 matches for "groupcolumn".

2016 Apr 19
0
Interquartile Range
...t didn't work Jim! It always helps to say how the suggestion did not work. Jim's function had a typo in it - was that the problem? Or did you not change the call to ddply to use that function. Here is something that might "work" for you: library(plyr) data <- data.frame(groupColumn=rep(1:5,1:5), col1=2^(0:14)) myIqr <- function(x) { paste(round(quantile(x,0.25),0),round(quantile(x,0.75),0),sep="-") } ddply(data, ~groupColumn, summarise, col1_myIqr=myIqr(col1), col1_IQR=stats::IQR(col1)) # groupColumn col1_myIqr col1_IQR #1 1 1-1...
2016 Apr 19
5
Interquartile Range
..., Michael Artz <michaeleartz at gmail.com> > wrote: > > Hi, > > I am trying to show an interquartile range while grouping values using > > the function ddply(). So my function call now is like > > > > groupedAll <- ddply(data > > ,~groupColumn > > ,summarise > > ,col1_mean=mean(col1) > > ,col2_mode=Mode(col2) #Function I wrote for getting the > > mode shown below > > > > ,col3_Range=paste(as.character(round(quantile(datat$tenure,c(.25)))), > > a...
2016 Apr 19
1
Interquartile Range
...helps to say how the suggestion did not work. Jim's > function had a typo in it - was that the problem? Or did you not > change the call to ddply to use that function. Here is something > that might "work" for you: > > library(plyr) > > data <- data.frame(groupColumn=rep(1:5,1:5), col1=2^(0:14)) > myIqr <- function(x) { > paste(round(quantile(x,0.25),0),round(quantile(x,0.75),0),sep="-") > } > ddply(data, ~groupColumn, summarise, col1_myIqr=myIqr(col1), > col1_IQR=stats::IQR(col1)) > # groupColumn col1_myIqr col1_IQR &gt...
2016 Apr 19
2
Interquartile Range
...e problem? Or did you not >> >>> change the call to ddply to use that function. Here is something >> >>> that might "work" for you: >> >>> >> >>> library(plyr) >> >>> >> >>> data <- data.frame(groupColumn=rep(1:5,1:5), col1=2^(0:14)) >> >>> myIqr <- function(x) { >> >>> >> paste(round(quantile(x,0.25),0),round(quantile(x,0.75),0),sep="-") >> >>> } >> >>> ddply(data, ~groupColumn, summarise, col1_myIqr=myIqr(col1), >...
2016 Apr 19
2
Interquartile Range
...helps to say how the suggestion did not work. Jim's > function had a typo in it - was that the problem? Or did you not > change the call to ddply to use that function. Here is something > that might "work" for you: > > library(plyr) > > data <- data.frame(groupColumn=rep(1:5,1:5), col1=2^(0:14)) > myIqr <- function(x) { > paste(round(quantile(x,0.25),0),round(quantile(x,0.75),0),sep="-") > } > ddply(data, ~groupColumn, summarise, col1_myIqr=myIqr(col1), > col1_IQR=stats::IQR(col1)) > # groupColumn col1_myIqr col1_IQR &gt...
2016 Apr 19
0
Interquartile Range
Hi, Here is what I am doing notGroupedAll <- ddply(data ,~groupColumn ,summarise ,col1_mean=mean(col1) ,col2_mode=Mode(col2) #Function I wrote for getting the mode shown below ,col3_Range=myIqr(col3) ) groupedAll <- ddply(data ,~groupColumn ,summ...
2016 Apr 20
2
Interquartile Range
...icking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Apr 19, 2016 at 4:25 PM, Michael Artz <michaeleartz at gmail.com> wrote: > Hi, > Here is what I am doing > > notGroupedAll <- ddply(data > ,~groupColumn > ,summarise > ,col1_mean=mean(col1) > ,col2_mode=Mode(col2) #Function I wrote for getting the > mode shown below > ,col3_Range=myIqr(col3) > ) > > groupedAll <- ddply(data >...
2016 Apr 19
2
Interquartile Range
...s >>> function had a typo in it - was that the problem? Or did you not >>> change the call to ddply to use that function. Here is something >>> that might "work" for you: >>> >>> library(plyr) >>> >>> data <- data.frame(groupColumn=rep(1:5,1:5), col1=2^(0:14)) >>> myIqr <- function(x) { >>> paste(round(quantile(x,0.25),0),round(quantile(x,0.75),0),sep="-") >>> } >>> ddply(data, ~groupColumn, summarise, col1_myIqr=myIqr(col1), >>> col1_IQR=stats::IQR(col1)) >...
2016 Apr 19
0
Interquartile Range
...tion did not work. Jim's >> function had a typo in it - was that the problem? Or did you not >> change the call to ddply to use that function. Here is something >> that might "work" for you: >> >> library(plyr) >> >> data <- data.frame(groupColumn=rep(1:5,1:5), col1=2^(0:14)) >> myIqr <- function(x) { >> paste(round(quantile(x,0.25),0),round(quantile(x,0.75),0),sep="-") >> } >> ddply(data, ~groupColumn, summarise, col1_myIqr=myIqr(col1), >> col1_IQR=stats::IQR(col1)) >> # groupColumn...
2016 Apr 20
0
Interquartile Range
...us (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Tue, Apr 19, 2016 at 4:25 PM, Michael Artz <michaeleartz at gmail.com> wrote: >> Hi, >> Here is what I am doing >> >> notGroupedAll <- ddply(data >> ,~groupColumn >> ,summarise >> ,col1_mean=mean(col1) >> ,col2_mode=Mode(col2) #Function I wrote for getting the >> mode shown below >> ,col3_Range=myIqr(col3) >> ) >> >> groupedAll &lt...
2016 Apr 20
2
Interquartile Range
...om County" comic strip ) > > > > > > On Tue, Apr 19, 2016 at 4:25 PM, Michael Artz <michaeleartz at gmail.com> > wrote: > >> Hi, > >> Here is what I am doing > >> > >> notGroupedAll <- ddply(data > >> ,~groupColumn > >> ,summarise > >> ,col1_mean=mean(col1) > >> ,col2_mode=Mode(col2) #Function I wrote for getting the > >> mode shown below > >> ,col3_Range=myIqr(col3) > >> ) &gt...
2016 Apr 19
0
Interquartile Range
...typo in it - was that the problem? Or did you not > >>> change the call to ddply to use that function. Here is something > >>> that might "work" for you: > >>> > >>> library(plyr) > >>> > >>> data <- data.frame(groupColumn=rep(1:5,1:5), col1=2^(0:14)) > >>> myIqr <- function(x) { > >>> paste(round(quantile(x,0.25),0),round(quantile(x,0.75),0),sep="-") > >>> } > >>> ddply(data, ~groupColumn, summarise, col1_myIqr=myIqr(col1), > >>> col1_I...
2016 Apr 20
0
Interquartile Range
...t; >> > >> > On Tue, Apr 19, 2016 at 4:25 PM, Michael Artz <michaeleartz at gmail.com> >> > wrote: >> >> Hi, >> >> Here is what I am doing >> >> >> >> notGroupedAll <- ddply(data >> >> ,~groupColumn >> >> ,summarise >> >> ,col1_mean=mean(col1) >> >> ,col2_mode=Mode(col2) #Function I wrote for getting the >> >> mode shown below >> >> ,col3_Range=myIqr(col3) >> >&g...
2016 Apr 19
2
Interquartile Range
Hi, I am trying to show an interquartile range while grouping values using the function ddply(). So my function call now is like groupedAll <- ddply(data ,~groupColumn ,summarise ,col1_mean=mean(col1) ,col2_mode=Mode(col2) #Function I wrote for getting the mode shown below ,col3_Range=paste(as.character(round(quantile(datat$tenure,c(.25)))), as.character(round(quantile(data$tenure,c(.75)))), sep = "-"...
2016 Apr 19
0
Interquartile Range
...On Tue, Apr 19, 2016 at 11:15 AM, Michael Artz <michaeleartz at gmail.com> wrote: > Hi, > I am trying to show an interquartile range while grouping values using > the function ddply(). So my function call now is like > > groupedAll <- ddply(data > ,~groupColumn > ,summarise > ,col1_mean=mean(col1) > ,col2_mode=Mode(col2) #Function I wrote for getting the > mode shown below > > ,col3_Range=paste(as.character(round(quantile(datat$tenure,c(.25)))), > as.character(round(quantile(data$ten...
2016 Apr 19
0
Interquartile Range
...rtz at gmail.com> >> wrote: >> > Hi, >> > I am trying to show an interquartile range while grouping values using >> > the function ddply(). So my function call now is like >> > >> > groupedAll <- ddply(data >> > ,~groupColumn >> > ,summarise >> > ,col1_mean=mean(col1) >> > ,col2_mode=Mode(col2) #Function I wrote for getting the >> > mode shown below >> > >> > ,col3_Range=paste(as.character(round(quantile(datat$tenur...