On Sep 14, 2013, at 5:47 AM, 胡夫 wrote: > > Your problem is very easy to solve, it fits well a first-lesson programming > introduction course.
Exactly. And... It is for this reason that such quesions which are obviously homework are deprecated on this mailing list.m Snipped ramineder of posting which had no context and was posted in HTML, also both deprecated practices. > > [[alternative HTML version deleted]] Please read the Posting Guide. -- David Winsemius Alameda, CA, USA ______________________________________________ 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.