Thanks for your time with this. Erik's solution works best to deal with the input... I'll try to reshape the output back into the appropriate columns.
David, fold(sq$s1) only outputs the result for the first sequence in the list I'm afraid. The 'fold' function doesn't deal well with spaces... Thanks again. -- View this message in context: http://r.789695.n4.nabble.com/Error-in-FUN-X-1L-STRING-ELT-can-only-be-applied-to-a-character-vector-not-a-integer-tp2226811p2228157.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.