Hi, Hans Ekbrand wrote (19.2.2008): > I tried the following small code snippet which I copied from the > > "Introduction to R": > > for (i in 2:length(meriter)) { table(meriter[[1]], meriter[[i]]) }
Try: for (i in 2:length(meriter)) { print(table(meriter[[1]], meriter[[i]])) } Kind regards, Kimmo ______________________________________________ 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.