The error is "could not find function DGEList". You're not specifying a function by the line you've written; function definitions have the word "function" in them. Perhaps what you meant was to use the 'list' function:
Code:
y.DGEList <- list(counts=m, group=c(1,1,1,2,2,2));
Comment