Learn R Programming

descr (version 1.0.0)

file.head: Prints first lines of a file.

Description

The function prints the first lines of a file, optionally truncating the lines according to the screen width. The lines are truncated at getOption("width") - 2.

Usage

file.head(file, n, truncate.cols = TRUE)

Arguments

file
Character: The name of the file whose first lines should be printed.
n
The number of lines to show.
truncate.cols
Logical: if TRUE truncate the lines.

Value

  • NULL.