readChangeoDb reads a list of files in parallel

Issue #57 invalid
Susanna Marquez
created an issue

I have coded this too many times. Probably best add the code to the function.

Comments (3)

  1. Jason Vander Heiden

    Do you mean?

    db <- bind_rows(lapply(input_files, readChangeoDb))
    

    The proper way would be to make ... the first argument to readChangeoDb, but then you'd have to do the following to load multiple files programmatically:

    do.call(readChangeoDb, input_files)
    

    Not sure that's any easier.

  2. Log in to comment