read_data_post_process: Helper function for 'read_data()': Do all post processing

Description Usage Arguments Value

View source: R/read_data.R

Description

After reading a data file the following functions will be executed:

[new_file_definition())]: R:new_file_definition()) [read_data()]: R:read_data() [compare_col_types_()]: R:compare_col_types_() [new_file_definition())]: R:new_file_definition()) [read_data()]: R:read_data() [add_meta_()]: R:add_meta_() [apply_adapters_()]: R:apply_adapters_() [apply_cols_keep_()]: R:apply_cols_keep_() [add_extra_cols_()]: R:add_extra_cols_()

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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
read_data_post_process(data, file_definition, err_h)

rename_cols_(
  data,
  file_definition,
  err_h = composerr("Error while calling 'rename_cols_()'")
)

retype_cols_(
  data,
  file_definition,
  err_h = composerr("Error while calling 'retype_cols_()'")
)

add_extra_cols_(
  data,
  file_definition,
  err_h = composerr("Error while calling 'add_extra_cols_()'")
)

apply_to_lower_(
  data,
  file_definition,
  err_h = composerr("Error while calling 'apply_to_lower_()'")
)

compare_col_names_(
  data,
  file_definition,
  err_h = composerr("Error while calling 'compare_col_names_()'")
)

compare_col_types_(
  data,
  file_definition,
  err_h = composerr("Error while calling 'compare_col_types_()'")
)

apply_cols_keep_(
  data,
  file_definition,
  err_h = composerr("Error while calling 'apply_cols_keep_()'")
)

add_meta_(
  data,
  file_definition,
  err_h = composerr("Error while calling 'add_meta_()'")
)

Arguments

data

The data.frame, which should be modified

file_definition

A file_definition class object, holding the file information of the data file.

err_h

An error handler.

Value

The modified data.frame


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