4 ms·
If you parse e.g. a json file containing a scalar to an R object, that scalar will be represented as a length-1 vector. I get what you’re saying, but “it doesn’
by tfehring 2y ago
If you parse e.g. a json file containing a scalar to an R object, that scalar will be represented as a length-1 vector. I get what you’re saying, but “it doesn’t let you access scalars” would suggest to me that it can’t parse or represent values that are defined elsewhere as scalars at all.
- wodenokoto 2y agoBut the scalar is converted to a vector. And of the top of my head I have no idea how the round trip will end up. Will it spit out a 1 length vector in the json file or a scalar? And which ever you get, how would you do the opposite?