oops, I forgot to attach the example txt file with the syntax error, so I will do it here, can anyone see what the error is with bryansAtLineLevel? -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: r.txt Url: https://stat.ethz.ch/pipermail/r-help/attachments/20050520/c55da2f4/r.txt