Separate multivalue fields

Pubblicato il: 27 settembre 2022
sul canale di: John Little
139
5

Separate multivalue fields
code available at https://github.com/libjohn/workshop_r...
regex video -    • regex: finding patterns in [text] strings  
pivot_longer / pivot_wider -    • Tidy data & pivot data (part of the Rfun I...  
full video series -- playlist --    • Import multiple files from a local file sy...  


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-F) in the series presents the multivalue fields and how to easily separate those fields into taller or wider dataframes. In the Tidyverse, tall data is often easier to code for iteration. 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
0:56 - separate_rows() - transform data to tall data format, easier for iteration
1:19 - multivalue fields
2:53 - separate() - transform data to a wider format

Materials available at https://github.com/libjohn/workshop_r...
stringr cheatsheet - https://stringr..tidyverse.org
More Rfun at https://Rfun.library.duke.edu/
Part of the CDVS Workshop Series: http://library.duke.edu/data/


In questa pagina del sito puoi guardare il video online Separate multivalue fields della durata di ore minuti seconda in buona qualità , che l'utente ha caricato John Little 27 settembre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 139 volte e gli è piaciuto 5 spettatori. Buona visione!