Can be used to read and write a fwf with an accompanying 'Blaise' datamodel. Blaise is the software suite built by Statistics Netherlands (CBS). It is essentially a way to write and collect surveys and perform statistical analysis on the data. It stores its data in fixed width format with an accompanying metadata file, this is the Blaise format. The package automatically interprets this metadata and reads the file into an R dataframe. When supplying a datamodel for writing, the dataframe will be automatically converted to that format and checked for compatibility. Supports dataframes, tibbles and LaF objects. For more information about 'Blaise', see < https://blaise.com/products/general-information>.
This package provides function for reading and writing blaise fixed width files with a datamodel (usually with extension .bla) symmetrically. Symmetry in this case means that reading a dataset in R and then immediately writing it out, should result in the exact same dataset and datamodel.
All types except arrays are currently supported. Datamodels have only been tested as separate files, so datamodels within larger manipula or maniplus scripts for instance are not guaranteed to work. Datamodels from questionnaires are also mostly untested. Known limitations at this point are the NODK and NORF options, but there are likely to be more.
In addition, an R dataframe can be forced to conform to a known blaise datamodel. For this to work variable names in the dataframe need to match the datamodel. a simple name matching scheme based on minimizing the Levenshtein distance is supplied.
Since blaise and R datatypes don't exactly overlap, some are automatically converted:
For reading fwf files an option is available to output LaF objects. In this way the package is used as an alternative datamodel parser for the LaF package.