Re: [R] Summarizing select columns in a data frame

2021-01-17 Thread Bernard Comcast
Thanks David Bernard Sent from my iPhone so please excuse the spelling!" > On Jan 17, 2021, at 5:59 PM, David Winsemius wrote: > >  >> On 1/17/21 12:15 PM, Bernard McGarvey wrote: >> I have a data frame that consists of several factor columns say A, B, C, D, >> and E and several columns conta

Re: [R] Summarizing select columns in a data frame

2021-01-17 Thread David Winsemius
On 1/17/21 12:15 PM, Bernard McGarvey wrote: I have a data frame that consists of several factor columns say A, B, C, D, and E and several columns containing numerical data, say X1, X2, X10. I would like to create statistics of some of the numerical columns by some of the factor columns

Re: [R] Summarizing select columns in a data frame

2021-01-17 Thread Bernard Comcast
Thanks Bert Bernard Sent from my iPhone so please excuse the spelling!" > On Jan 17, 2021, at 3:48 PM, Bert Gunter wrote: > >  > There are literally tons of ways to do this sort of thing in R. > > In base R ?tapply and friends, especially ?ave and ?by that may be close to > what you want. >

Re: [R] Summarizing select columns in a data frame

2021-01-17 Thread Bert Gunter
There are literally tons of ways to do this sort of thing in R. In base R ?tapply and friends, especially ?ave and ?by that may be close to what you want. But there is a whole parallel universe -- the so-called "tidyverse set of packages -- that many folks prefer. This link takes you down that rab

[R] Summarizing select columns in a data frame

2021-01-17 Thread Bernard McGarvey
I have a data frame that consists of several factor columns say A, B, C, D, and E and several columns containing numerical data, say X1, X2, X10. I would like to create statistics of some of the numerical columns by some of the factor columns. For example, Calculate the mean, min, and max