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)
In SAS with PROC MEANS looks like this:
PROC MEANS N MIN Q1 MEDIAN Q3 MEAN STD MAXDEC=3 DATA=bref.neudaten; VAR Weight_V1 Weight_V2 Weight_V3; BY Product; RUN;
These are both example in Excel and in SAS, Can anyone help me to implement it in R? Thank you!