An S4 Class for Functional Data




Travis-CI Build Status AppVeyor Build Status CRAN_Status_Badge Coverage Status

funData is an R-package that allows users to easily handle functional data. The data is stored in an object-oriented manner using S4 classes and methods.


funData provides a unified framework for different types of functional data:

  • Univariate and multivariate data
  • Regularly and irregularly sampled data
  • Data with one-, two- (images) and even higher-dimensional domains

Important functionalities include:

  • Displaying, Plotting, including an interface to ggplot2
  • Subsetting (samples, domain)
  • Basic arithmetics and averaging
  • Integration over the domain
  • A fully integrated simulation toolbox


The funData pacakge is available on CRAN. To install the latest version directly from Github, please use devtools::install_github("ClaraHapp/funData") (install devtools before).


The funData package depends on the R-packages fields, foreach, abind and methods.


The functionalities of the funData package and its interplay with the MFPCA package for multivariate functional principal component analysis are described in:

C. Happ-Kurz (2020): Object-Oriented Software for Functional Data. Journal of Statistical Software, 93(5): 1-38 .

Bug reports

Please use GitHub issues for reporting bugs or issues.