Description Usage Arguments Details Value Author(s) Examples
View source: R/functions.r View source: R/readFile.r
A wrapper function for read.table for easy reading files and ignoring a given number of header rows
1 2 |
dataFile |
A character with the name of the file to read. It can include a full length path. |
nSkip |
The number of rows to skip to read the data |
nSkipNames |
The number of rows to skip to read the column names |
header |
Logical, for indicating if the file has a header or not. Default is TRUE. |
reverse |
Logical. If true then first reads a header and then skips a number or rows to read the data. Works in conjunction with nSkip option |
sep |
The field separator. Default is comma delimited |
na |
The value used in the file to represent NAs (e.g., -9999). The default is NaN |
It read a file by skiping first a number of rows to read the data and then reads the file again skiping a second number of rows to read the row with the variable names.
Returns a data frame
Georgios Xenakis
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.