View source: R/AllGenerics-Base.R
countLines | R Documentation |
countLines
visits all files in a directory path dirPath
whose base (i.e., file) name matches pattern
. Lines in the file
are counted as the number of new line characters.
countLines(dirPath, pattern=character(0), ..., useFullName=FALSE)
dirPath |
A character vector (or other object; see methods defined on this generic) giving the directory path (relative or absolute) of files whose lines are to be counted. |
pattern |
The ( |
... |
Additional arguments, passed internally to list.files. See
|
useFullName |
A |
A named integer vector of line counts. Names are paths to the files
whose lines have been counted, excluding dirPath
.
Martin Morgan
sp <- SolexaPath(system.file('extdata', package='ShortRead'))
countLines(analysisPath(sp))
countLines(experimentPath(sp), recursive=TRUE)
countLines(experimentPath(sp), recursive=TRUE, useFullName=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.