okgreece/tableschema-r

Support for type "any"?

Closed this issue · 3 comments

roll commented

Hi. Does the lib support type "any" - http://specs.frictionlessdata.io/table-schema/#any?

Hi! It is not really possible for an object to be of “Any” type, but it is nevertheless a valid type value. It gets used in certain (rather rare) circumstances, e.g. as.vector(x, "any"), indicating that type coercion should not be done.
https://cran.r-project.org/doc/manuals/r-release/R-lang.html#Any_002dtype

roll commented

I mean could we have a schema descriptor like this?

"fields": [
  {"name": "name", "type": "any"},
]

Internally it could be handled as string type for example. But we just need to do not fail on it.

Yes of course!