Count_Rows: Number of rows of a file

Description Usage Arguments Details Value Examples

View source: R/utils.R

Description

Number of rows of a file

Usage

1
Count_Rows(PATH, verbose = FALSE)

Arguments

PATH

a character string specifying the path to a file

verbose

either TRUE or FALSE

Details

This function returns the number of rows for a file. It doesn't load the data in memory.

Value

a numeric value

Examples

1
2
3
4
5
library(textTinyR)

PATH = system.file("example_files", "word_vecs.txt", package = "textTinyR")

num_rows = Count_Rows(PATH)

textTinyR documentation built on July 25, 2018, 5:03 p.m.