I should have also had you read FAQ 7.16 On Tue, May 4, 2010 at 12:43 PM, jim holtman <jholt...@gmail.com> wrote:
> explicitly print your data: > > print(head(object,...)) > On Tue, May 4, 2010 at 12:23 PM, Marshall Feldman <ma...@uri.edu> wrote: > >> Hello, >> >> I have a function with these lines: >> >> test <- function(object,...){ >> cat("object: has ",nrow(object),"labels\n") >> cat("Head:\n") >> head(object,...) >> cat("\nTail:\n") >> tail(object,...) >> } >> >> If I feed it a data frame object, it only prints out the tail part. If I >> comment out the last two lines of the function, it does print the head >> part. Obviously there's a buffer not being flushed between the head and >> the tail calls, but I don't know how to flush it. Can someone help me? >> >> Thanks. >> >> Marsh Feldman >> >> >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> 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<http://www.r-project.org/posting-guide.html> >> and provide commented, minimal, self-contained, reproducible code. >> > > > > -- > Jim Holtman > Cincinnati, OH > +1 513 646 9390 > > What is the problem that you are trying to solve? > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? [[alternative HTML version deleted]] ______________________________________________ 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.