Generation

generate functionFri, 28 Apr 2023

simgeturesi@gmail.com 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.

s_complete <- read.csv("C:/Users/simge/Desktop/R/s_complete.csv") s_complete$num_SNB <- ifelse(s_complete$Condition_SNB == "SNB_positive", 1, 0) 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)

Questions about programming?Chat with your personal AI assistant