peek_count_lines: number of lines of a file

Description Usage Arguments Value Examples

View source: R/funs.R

Description

return the number of lines found in a file. Operation is counting the number of new line symbols in the file.

Usage

1
peek_count_lines(path, with_eof = FALSE)

Arguments

path

file path

with_eof

count the end of file as a new line.

Value

number of lines as an integer

Examples

1
2
3
f <- system.file(package = "fpeek",
  "datafiles", "cigfou-ISO-8859-1.txt")
peek_count_lines(f)

fpeek documentation built on July 23, 2018, 1:02 a.m.