On Mon, 16 Nov 2009 19:54:08 -0800 (PST) ychu066 <ychu066 @aucklanduni.ac.nz> wrote: > here is the codes that i tried..... > > > png(paste("hist",i,".png",sep="") > + library(lattice) > Error: unexpected symbol in: > "png(paste("hist",i,".png",sep="") > library"
There is a missing ')' at the end of the first line. If you use an editor with syntax highlighting, it is easy to spot these types of errors. -- Karl Ove Hufthammer ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.