I have a problem, I would like to get different values or data frames out of an ancova loop. But I am new to R so my original approach does not work. Can someone help me?
for (u in 1:19) {
if (u %in% Branchendaten129$Branche){
paste0("dataStressKlimaSWK",label[u],sep = "") <- aov(Stress ~ Klima*SWK, data=subset(Branchendaten129, Branche == label[u]))
}else {NULL}
}
This is where I'm at... But I don't know why this approach does not get me the specific data out of my Dataframe. It is probably some problem with my Loop.
Thank you for your help. It is appreciated.