[R] Printing data frame with million rows

David Winsemius dwinsemius at comcast.net
Sun Aug 7 20:27:57 CEST 2011


On Aug 7, 2011, at 2:08 PM, Bansal, Vikas wrote:

> Dear all,
>
> I was working on number of files and at the end I got a data frame  
> with approx. million rows.To prin this data frame in output, I used
>
> capture.output(print.data.frame(end,row.names=F), file = "summary",  
> append = FALSE)
>
> where end is the name of my data frame and summary is the name of my  
> output file.
>
> but when I checked the output there were only 10000 rows and at the  
> last it was written-
>
> [ reached getOption("max.print") -- omitted 923750 rows ]]
>
> Can you please tell me what is wrong with my output code?

Nothing.

> I want to print all million rows in my output.

I'm trying to figure out why, after that warning message, you did not  
immediately pull up the help page for getOption?


-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list