Elektrine lite

← Feed

@nxskok@cupoftea.social

Post #2312777

2026-05-07 23:19 UTC

@LeafyEricScott@hachyderm.io what works, at least in this case, is first to get the file names: fnames % bind_rows() This works here because bind_rows sorts out the column types (it makes column a "dbl") and if a column is missing in some files, it fills it with NAs. (bind_rows works with a list of dataframes such as is produced by this map.)

Replies (2)

  • @nxskok@cupoftea.social 2026-05-07 23:44

    @LeafyEricScott@hachyderm.io (edited) I thought I had some ideas about what to do if bind_rows doesn't work, but the crucial thing is that bind_rows accepts a list of dataframes, and rbind does not.

    Open ##2312778

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

    @nxskok@cupoftea.social Yeah, this works (I have an example of this in the blog post), but it's not ideal because the memory overhead is MUCH greater than `read_csv(fnames)`.

    Open ##2312779