Generation

generate functionFri, 28 Apr 2023

summary(s_complete$num_SNB) aggregate(num_SNB ~ Condition_SNB, data = s_complete, FUN = summary) sd(s_complete$num_SNB) count <- table(s_complete$num_SNB) please combine these computations in one code.

library(dplyr) s_complete %>% group_by(Condition_SNB) %>% summarise(mean = mean(num_SNB), sd = sd(num_SNB), count = length(num_SNB), "max_value" = max(num_SNB), "min_value" = min(num_SNB))

Questions about programming?Chat with your personal AI assistant