Import multiple files from a local file system: iterate functions [Rfun]

preview_player
Показать описание
Ingest multiple files from a local file system: iterate functions

Using the case-study of data cleaning, this modular video series will demonstrate iteration with `purrr::map()` and custom functions while also showing several Tidyverse tips and tricks. This individual video (1-A) in the series uses the basic proposition of importing multiple CSV files. Each #IterateFunctionsR video will become progressively more fluent, using building-blocks to present intermediate data manipulation techniques in R and the Tidyverse.

By the end of the series you'll learn how to use the purrr package, a very convenient package in support of iterating over list-columns and nested data frames. purrr::map() iteration is often more convenient and efficient than a For-loop. You'll also learn how to compose custom functions in R.
since R is a functional programming language, composing your own custom functions can increase your fluency as an R coder.

Contents:
0:00 - introduction
1:00 - library(fs) dir_ls() - list files on local file system
1:35 - read_csv() - import multiple CSV files | approach 1f
3:20 - col_types - coerce data types at ingest
Рекомендации по теме
Комментарии
Автор

Hi John, can you please show or share the resource on how to read multiple csv files with different column numbers from a folder and make separate objects and one object.

laluthomas