Skip to content
Prev 29504 / 63424 Next

head() for files

On 25/07/2008 7:30 AM, Gorjanc Gregor wrote:
I think you should have called it head.connection, and then

head(file("ex.data"))

would sort of work.  The problems with this are open connections:  what 
should it do on one of those?  Seeking to the start would make sense, 
but not all connections can do that.

Duncan Murdoch