View source: R/readCsvInputFile.R
readCsvInputFile | R Documentation |
Read CSV File Giving Column Descriptions
readCsvInputFile(
csv,
sep,
dec,
headerRow = 1,
headerPattern = "",
columnDescription = NULL,
maxRowToLookForHeader = 10,
stopOnMissingColumns = TRUE,
fileEncoding = "UTF-8",
encoding = "unknown",
...
)
csv |
full path to CSV file |
sep |
column separator |
dec |
decimal character |
headerRow |
number row in which the header (containing column captions) is found |
headerPattern |
pattern matching the header row. If headerPattern is given headerRow is not considered |
columnDescription |
list of column descriptors. The list elements are named with the name of the list elements being the names that shall be used in the returned data frame. Each list element is a list with elements match (pattern to be looked for in the header fields), ... |
maxRowToLookForHeader |
maximum number of rows to be considered when looking for the header row |
stopOnMissingColumns |
if TRUE (default) the program stops if not all columns defined in columnDescription are found |
fileEncoding |
encoding of the input file |
encoding |
passed to readLines, "Latin-1" or "UTF-8" |
... |
further arguments passed to read.table |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.