HI, data6$Gen=paste("G",data6$Gen,sep="") #Error in paste("G", data6$Gen, sep = "") : object 'data6' not found Please check this link: http://stackoverflow.com/questions/7027288/error-could-not-find-function-in-r A.K. R-Community, I am new to r. I have used SAS all my life. SO, here I am trying to use AMMI with agricolae package. Each time I have tried to run the program, I get the message that says, " [error: could not find function "ammi"]". What could possibly be happening? Noble (Here is my code) data6$Gen=paste("G",data6$Gen,sep="") G=data6$Geno E=data6$Env TW=data6$TW n=length(TW) Rep=rep(1,n)? ## Replication is needed for AMMI analysis. If there is no replication, just assign column of 1 par(mfrow=c(1,1)) #model<- ammi(E, G, Rep, TW,graph="biplot") model=ammi(E, G, Rep, TW,graph="biplot",number=FALSE) biplot<-model$biplot[,1:4] head(biplot) #attach(biplot) #par(cex=0.8) #length(biplot$PWT) par(mfrow=c(1,1)) plot(biplot$TW,biplot$PC1,cex=0.0,text(biplot$TW,biplot$PC1,labels=row.names(biplot),col="blue"), ?main="AMMI BIPLOT",ylab="PC1",xlab="Test Weight", frame=TRUE)? ##Bioplot based actual mean and PC1 MEANS<-mean(TW) abline(h=0,v= MEANS,lty=2,col="red") names=rownames(bplot) id=which(biplot$type=="ENV") enames=names[id] y=biplot[,2][id] pc1=biplot[,3][id] s <- seq(enames) arrows(MEANS, 0, y[s], pc1[s], col = "brown", lwd = 1.8, length = 0.1, code = 2)