Elektrine lite

← Feed

@chiraag@mastodon.online

Post #2312769

2026-05-07 23:21 UTC

@LeafyEricScott@hachyderm.io My parse function is: parse = ((\y -> case y of { [ai,bi] -> Row (read ai :: Double) bi Nothing; [ai,bi,ci] -> Row (read ai :: Double) bi (Just (read ci :: Bool)); _ -> error "Wrong number of fields" }) . LS.splitOn ",") (Yes, I could generalize this over a user-supplied delimiter, but you get the idea). I would think there would be a way in R to specify that a column is optional, but perhaps not...

Replies (1)

  • @LeafyEricScott@hachyderm.io 2026-05-07 23:58

    @chiraag@mastodon.online Yeah...I also thought there would be a way to specify that a column is optional with {arrow} in R, but if there is, I haven't found it.

    Open ##2312776