Hello everyone, I am currently trying to combining the function sapply() with group_by(). So basically I just want to perform a simple summary descriptive statistic with mean,median,min,max,etc for each column/variable in the data and before I apply it in R Shiny, I have done it first in R console and it looks like this:
But now I want to separate it based on the group Product(A and B), it looks more likely like this:
(These are just an example with V1 and V2 as the columns/variables, grouped by Placebo and Extract)
These are both example in Excel and in SAS, Can anyone help me to implement it in R? Thank you!