Slide 1

Slide 1 text

1 tidyfun Fabian Scheipl, Jeff Goldsmith, Julia Wrobel

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

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)

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

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!