countTextLines: countTextLines: Counting lines in text files.

Description Usage Arguments Details Examples

Description

The countTextLines function takes a filename vector and returns the number of lines contained in each file.

Usage

1
countTextLines(filenames)

Arguments

filenames

Character. Vector of file-names to be opened.

Details

Fastq files usually (but not guaranteed) contain four lines of text for each read. In many cases, this function can be used to count the number of reads in a fastq file.

Examples

1
2
filename <- system.file("extdata", "test.fastq", package="rbamtools")
countTextLines(filename)


Search within the rbamtools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.