helseprofil / orgdata

:package: R package for aggregating original data mostly on enumeration areas level of granularity
https://helseprofil.github.io/orgdata/
Other
1 stars 0 forks source link

String code does not show up in error log file for ALDER #274

Closed raniets closed 2 years ago

raniets commented 2 years ago

A couple of Rawdata files for filegroup BEF_GKny contain a string value for ALDER. In the error log, another code, a numeric code, is listed.

Example: Rawdata file "F:\Forskningsprosjekter\PDB 2455 - Helseprofiler og til_\PRODUKSJON\ORGDATA\SSB\BEFOLKNING\RAADATA\2022\g1ekstra\g1bekstra1993.csv" contains two rows with the code "00J" for variable "alderu" (which is ALDER).

When running 'make_file()' the error is reported: Check column ALDER! NAs introduced by coercion!! Check codes with: read_log("ALDERxx")

But the error log does not list the erroneous code:

   > read_log("ALDERxx")
   File:  C:/Users/stbj/orgdata_logs/ALDERxx.csv 
      V1
   1: 34

The ALDER variable in this file is by single years of age, so a value of "34" is perfectly valid.