Re: [R] aggregate produces results in unexpected format

2024-12-11 Thread Rui Barradas
Às 20:31 de 11/12/2024, Sorkin, John escreveu: I am trying to use the aggregate function to run a function, catsbydat2, that produces the mean, minimum, maximum, and number of observations of the values in a dataframe, inJan2Test, by levels of the dataframe variable MyDay. The output should be

Re: [R] aggregate produces results in unexpected format

2024-12-11 Thread Enrico Schumann
On Wed, 11 Dec 2024, Sorkin, John writes: > I am trying to use the aggregate function to run a function, catsbydat2, that > produces the mean, minimum, maximum, and number of observations of the values > in a dataframe, inJan2Test, by levels of the dataframe variable MyDay. The > output should

[R] aggregate produces results in unexpected format

2024-12-11 Thread Sorkin, John
I am trying to use the aggregate function to run a function, catsbydat2, that produces the mean, minimum, maximum, and number of observations of the values in a dataframe, inJan2Test, by levels of the dataframe variable MyDay. The output should be in the form of a dataframe. #my code: # This fu