csvy icon indicating copy to clipboard operation
csvy copied to clipboard

ok to add columnType as valid field descriptor option?

Open tvc-amaffei opened this issue 5 years ago • 0 comments

I'm strongly considering csvy for a project I'm working on in which I want to indicate meaning "hints" for columns in csv files.

It looks like the frictionless data folks have specified an interesting "columnType" option for their Fiscal Data Package Schema (https://specs.frictionlessdata.io/fiscal-data-package/#columntypes).

In an effort to "keep things simple" I don't see implementing their taxonomy and other parts of this scheme. Rather I would just modify the internal "add_variable_metadata" function to copy the value of columnType as yet another variable attribute (similar to the current label support).

Another approach would be to add a new logical "strict" parameter for read_csvy with a default of "TRUE". If set to "FALSE" it would allow any field variable to be copied as an attribute in the returned R table.

Is this a reasonable thing to do as part of the csvy package? If so, which approach would you prefer? Thank you.

tvc-amaffei avatar Jun 11 '20 19:06 tvc-amaffei