Re:Why R is the best coding language for data journalism
by tfehring on Friday December 20, 2024 @12:11PM
(#42472818)
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.
[ Parent
| on HN ]
Re:Why R is the best coding language for data journalism
by wodenokoto on Friday December 20, 2024 @02:20PM
(#42474023)
But 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?