View source: R/utilities-observed-data.R
getReaderFunction | R Documentation |
Get most appropriate reader function by guessing file separator File separator is guessed by checking number of fields/columns along lines
getReaderFunction(fileName, nlines = 2)
fileName |
Name of file to be read |
nlines |
Number of lines to look at for checking consistency within file. Note that, unlike 'read.csv', 'count.fields' does not have options for handling encoding or escape characters. Thus, using 'nlines' as low as possible reduces the chances of inconsistent column widths caused by such characters. |
Reader function such as 'read.csv'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.