CRAN_Status_Badge Total Downloads Downloads

cfda provides functions for the analysis of categorical functional data.

The main contribution is the computation of an optimal encoding (real functional variable) of each state of the categorical functional data.


From CRAN:

From github:

install_github("modal-inria/cfda", build_vignettes = TRUE)


Once the package is installed, a vignette describing the mathematical background and showing an example is available using the R command:

RShowDoc("cfda", package = "cfda")


cfda is developed by Cristian Preda (Inria Lille, Université de Lille), Quentin Grimonprez (Inria Lille) and Vincent Vandewalle (Inria Lille, Université de Lille).

Copyright Inria - Université de Lille


Preda C, Grimonprez Q, Vandewalle V. Categorical Functional Data Analysis. The cfda R Package. Mathematics. 2021; 9(23):3074.

  title = {Categorical Functional Data Analysis. The cfda R Package},
  author = {Cristian Preda and Quentin Grimonprez and Vincent Vandewalle},
  journal = {Mathematics},
  year = {2021},
  volume = {9},
  number = {23},
  url = {},
  doi = {10.3390/math9233074},


This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.