I want to execute only ONE tapply
function and get results for each of the dataframes at one time:
dataset1<-data.frame(group = rep(c('a','b','c','d'), 3, each = 3),
number1 = c(1:36), number2 = c(1:36))
dataset2<-data.frame(group = rep(c('a','b','c','d'), 3, each = 3),
number1 = c(36:71), number2 = c(36:71))
dataset3<-data.frame(group = rep(c('a','b','c','d'), 3, each = 3),
number1 = c(71:106), number2 = c(71:106))
I ask you, if possible, for the resolution to be made for the three databases and for the two numeric variables present in each of them.