getReaderFunction: getReaderFunction

View source: R/utilities-observed-data.R

getReaderFunctionR Documentation

getReaderFunction

Description

Get most appropriate reader function by guessing file separator File separator is guessed by checking number of fields/columns along lines

Usage

getReaderFunction(fileName, nlines = 2)

Arguments

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.

Value

Reader function such as 'read.csv'


Open-Systems-Pharmacology/OSPSuite.ReportingEngine documentation built on Sept. 13, 2024, 11:36 a.m.