read_data_: Helper method for 'read_data()'

Description Usage Arguments

View source: R/read_data.R

Description

Helper method for read_data()

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
read_data_(file_definition, ...)

## S3 method for class 'file_collection'
read_data_(
  file_definition,
  err_h = composerr("Error while calling 'read_data_()'"),
  try_first = TRUE
)

## S3 method for class 'file_definition_fwf'
read_data_(
  file_definition,
  err_h = composerr("Error while calling 'read_data_()'")
)

## S3 method for class 'file_definition_dsv'
read_data_(
  file_definition,
  err_h = composerr("Error while calling 'read_data_()'")
)

## S3 method for class 'file_definition_excel'
read_data_(
  file_definition,
  err_h = composerr("Error while calling 'read_data_()'")
)

## S3 method for class 'file_definition_sas'
read_data_(
  file_definition,
  err_h = composerr("Error while calling 'read_data_()'")
)

Arguments

file_definition

A file_definitionuration object, holds all informations needed for reading the data. This object can be created with one of the following functions:

  • new_file_definition(): For reading FWF, DSV or EXCEL files

  • new_file_definition_fwf(): For reading FWF files

  • new_file_definition_dsv(): For reading DSV files

  • new_file_definition_excel(): For reading EXCEL files

...

Additional arguments

err_h

An error handler

try_first

A logical value. If set to TRUE, then the function read_data_() tries reading in a small amount of rows first, in order to check that the specified data files can be read and concatenated at all. This should save the user from waiting a long time before getting an error message, telling him that the file_definitionuration must be updated.


a-maldet/readall documentation built on Dec. 18, 2021, 9:23 p.m.