|
10 | 10 | ### Modifications to data files in the package
|
11 | 11 |
|
12 | 12 | * add material codes to eucodes.csv and save as UTF-8
|
13 |
| -* add eucodes_full.csv file with main_code/char_1/char_2 combinations |
14 |
| -* describe more fields in column-names.csv |
15 |
| -* specify quantification 1 as numeric |
| 13 | +* add eucodes_full_de.csv file with main_code/char_1/char_2 combinations |
| 14 | +* in eucodes_de.csv, specify quantification 1 as numeric |
16 | 15 |
|
17 | 16 | ### Modifications to (exported or private) functions (in alphabetical order)
|
18 | 17 |
|
19 | 18 | * extractInspectionBlocks
|
20 | 19 | - rename argument "quoteCharacter" to "quote"
|
21 |
| -* extractObservationBlocks() |
22 |
| - - add a last "to" value if the last EU-line is not "#Z" |
23 |
| -* extractObservationData() |
24 |
| - - add arguments "file", "as.text" |
25 |
| - - remove empty records from table of observations |
26 |
| - - run readObservationsFromCsvText() with "colClasses" being set to the |
27 |
| - expected column types |
28 | 20 | * get_code_meanings()
|
29 | 21 | - rename to getCodeMeanings()
|
30 | 22 | * getCodes()
|
|
33 | 25 | - reset the row names
|
34 | 26 | * getInspectionHeaderInfo()
|
35 | 27 | - rename to getInspectionHeaderInfo_v1()
|
36 |
| -* getInspectionHeaderInfo2() |
37 |
| - - rename to getInspectionHeaderInfo_v2() |
38 |
| - - use new argument "version" instead of old argument "getInfo" |
39 |
| -* getInspectionRecords_v2() |
40 |
| - - use normal console output instead of message |
41 | 28 | * getInspectionsFromEuLines()
|
42 |
| - - add argument "dbg" to control whether to show a message or not |
43 | 29 | - rename to getInspectionRecords_v1()
|
| 30 | + - add argument "dbg" to control whether to show a message or not |
44 | 31 | * getInspectionsFromEuLines.new()
|
45 | 32 | - rename to getInspectionRecords_v2()
|
46 | 33 | * getObservationsFromEuLines()
|
|
51 | 38 | - add arguments "add.inspid", "error.file" to optionally add globally unique
|
52 | 39 | inspection IDs and to specify where to store related error messages
|
53 | 40 | - add arguments "project", "default.time", "name.convention"
|
54 |
| - - clean code |
55 | 41 | - fix typo in warning
|
| 42 | + - clean code |
56 | 43 | * readEuCodedFile()
|
57 | 44 | - add arguments "name.convention", "file.encoding", "check.encoding"
|
58 | 45 | - change default value of argument "encoding" from "latin1" to "unknown"
|
59 |
| - - use new function extractObservationData() to read observation data if the |
60 |
| - original function getObservationsFromEuLines() fails |
61 |
| - - pass "dbg" through to getInspectionsFromEuLines(), removeEmptyLines() |
| 46 | + - use new function getObservationRecordsFromEuLines() |
| 47 | + - pass "dbg" through to removeEmptyLines(), getInspectionRecordsFromEuLines() |
62 | 48 | - refactor
|
63 | 49 | * readEuCodedFiles()
|
64 | 50 | - let "file" be the first column
|
65 | 51 | - in the error message, report on files that failed to be imported
|
66 |
| -* readObservationsFromCsvText() |
67 |
| - - reduce "colClasses" to columns that actually occur |
68 | 52 | * removeEmptyLines()
|
69 | 53 | - clean code
|
70 | 54 | * textblockToDataframe()
|
|
83 | 67 | * createHashFromColumns()
|
84 | 68 | * extdataFile()
|
85 | 69 | * extractObservationBlocks()
|
| 70 | + - add a last "to" value if the last EU-line is not "#Z" |
86 | 71 | * extractObservationData()
|
| 72 | + - remove empty records from table of observations |
| 73 | + - run readObservationsFromCsvText() with "colClasses" being set to the |
| 74 | + expected column types or to "character" if as.text is TRUE |
87 | 75 | * getExampleData()
|
88 | 76 | * getExampleFile()
|
89 | 77 | * getFileHeaderFromEuLines()
|
90 | 78 | * getHeaderInfo()
|
91 |
| -* getInspectionHeaderInfo2() |
| 79 | +* getInspectionHeaderInfo_v2() |
92 | 80 | * getInspectionRecordsFromEuLines()
|
93 | 81 | * getObservationRecordsFromEuLines()
|
| 82 | + - call extractObservationData() if calling getObservationsFromEuLines() fails |
94 | 83 | * readFileEncodingFromHeader()
|
95 | 84 | * readObservationsFromCsvText()
|
| 85 | + - reduce "colClasses" to columns that actually occur |
96 | 86 | * setFilename()
|
97 | 87 | * setGlobalInspectionID()
|
98 | 88 | * toEuFormat()
|
99 | 89 |
|
100 | 90 | ### Remove private functions
|
101 | 91 |
|
102 | 92 | * getHeaderLinesFromEuCodedLines()
|
103 |
| -* getHeaderInfroFromHeaderLines() |
| 93 | +* getHeaderInfoFromHeaderLines() |
104 | 94 | * order_by()
|
105 | 95 |
|
106 | 96 | ## kwb.en13508.2 v0.2.0.9000 (2019-09-09)
|
|
0 commit comments