tidyfun

 tidyfun

0d559afa4f15e19e0c058fd77da651e4?s=128

Jeff Goldsmith

June 09, 2019
Tweet

Transcript

  1. 1 tidyfun Fabian Scheipl and Jeff Goldsmith

  2. 2 What is “tidy” data? • Briefly, data that’s organized

    into a nice rectangle – Every row is a complete record, every column is a distinct variable • Lots of tools now exist for “tidy” data – there’s a whole tidyverse!! R for Data Science
  3. 3 Functional data aren’t “tidy” … • Existing data structures

    for functional data don’t work in this format – Conceptually, whole functions are single “values” – Ideally, these would be stored in a single cell in a tidy data rectangle • Instead, we have … matrices? “Wide” or “long” data? • All of these are painful to work with, typically in distinct ways – Don’t encode anything “functional”, like temporal structure, interpolation methods, smoothing approaches, etc – Don’t work with the tidyverse (and often aren’t easy with Base R either)
  4. 4 What is tidyfun? • The tidyfun package provides accessible

    and well-documented software to make functional data analysis in R easy • Specifically emphasizes data wrangling, exploratory analysis, and visualization • Integrates functional data with data frames containing other variables, enabling data manipulation using tidyverse tools
  5. 5 What does tidyfun do? • tidyfun introduces a new

    data type (tf) with useful subclasses (tfd and tfb) – tf vectors can be operated on using many standard functions (+, mean, etc.) – tidyfun introduces new functions for tf vectors (tf_smooth, tf_where, etc) • tidyfun also provides: – tidyverse verbs for handling functional data – especially inside data frames – Tools for converting between “old” data structures and tf vectors – New pasta-themed graphics functions for tf vectors and tidy functional data frames
  6. 6 Why should I use tidyfun? • Easy to work

    with functional data • Intuitive exploratory data analysis • Slick visualizations, especially with ggplot • Coming soon – integration with robust functional data analysis pipelines • Stickers!